Skip to content

Commit

Permalink
Skip sys::system(...) call in case of empty command
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Aug 14, 2017
1 parent 6fb8f5f commit cffe85f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util.cpp
Expand Up @@ -812,6 +812,7 @@ fs::path GetSpecialFolderPath(int nFolder, bool fCreate)

void runCommand(const std::string& strCommand)
{
if (strCommand.empty()) return;
int nErr = ::system(strCommand.c_str());
if (nErr)
LogPrintf("runCommand error: system(%s) returned %d\n", strCommand, nErr);
Expand Down

0 comments on commit cffe85f

Please sign in to comment.