mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
Materialize temporary string obtained from boost path
This commit is contained in:
@@ -62,7 +62,8 @@ namespace i2p
|
||||
LogPrint("Error, could not create process group.");
|
||||
return false;
|
||||
}
|
||||
chdir(i2p::util::filesystem::GetDataDir().string().c_str());
|
||||
std::string d(i2p::util::filesystem::GetDataDir()); // make a copy
|
||||
chdir(d.c_str());
|
||||
|
||||
// close stdin/stdout/stderr descriptors
|
||||
::close (0);
|
||||
|
||||
Reference in New Issue
Block a user