Browse Source

Skip sys::system(...) call in case of empty command

0.16
practicalswift 8 years ago
parent
commit
cffe85f975
  1. 1
      src/util.cpp

1
src/util.cpp

@ -812,6 +812,7 @@ fs::path GetSpecialFolderPath(int nFolder, bool fCreate) @@ -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);

Loading…
Cancel
Save