mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Materialize temporary string obtained from boost path
This commit is contained in:
parent
38ebe28923
commit
490b65dfe2
4 changed files with 23 additions and 35 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue