Skip to content

Commit cffe85f

Browse files
Skip sys::system(...) call in case of empty command
1 parent 6fb8f5f commit cffe85f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,7 @@ fs::path GetSpecialFolderPath(int nFolder, bool fCreate)
812812

813813
void runCommand(const std::string& strCommand)
814814
{
815+
if (strCommand.empty()) return;
815816
int nErr = ::system(strCommand.c_str());
816817
if (nErr)
817818
LogPrintf("runCommand error: system(%s) returned %d\n", strCommand, nErr);

0 commit comments

Comments
 (0)