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

This commit is contained in:
practicalswift 2017-07-27 11:35:01 +02:00
parent 6fb8f5f17c
commit cffe85f975

View File

@ -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);