mirror of
https://github.com/dashpay/dash.git
synced 2024-12-30 14:25:53 +01:00
Skip sys::system(...) call in case of empty command
This commit is contained in:
parent
6fb8f5f17c
commit
cffe85f975
@ -812,6 +812,7 @@ fs::path GetSpecialFolderPath(int nFolder, bool fCreate)
|
|||||||
|
|
||||||
void runCommand(const std::string& strCommand)
|
void runCommand(const std::string& strCommand)
|
||||||
{
|
{
|
||||||
|
if (strCommand.empty()) return;
|
||||||
int nErr = ::system(strCommand.c_str());
|
int nErr = ::system(strCommand.c_str());
|
||||||
if (nErr)
|
if (nErr)
|
||||||
LogPrintf("runCommand error: system(%s) returned %d\n", strCommand, nErr);
|
LogPrintf("runCommand error: system(%s) returned %d\n", strCommand, nErr);
|
||||||
|
Loading…
Reference in New Issue
Block a user