From cffe85f975413441b8fbc5bda82fd2c9d75476f5 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 27 Jul 2017 11:35:01 +0200 Subject: [PATCH] Skip sys::system(...) call in case of empty command --- src/util.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util.cpp b/src/util.cpp index ba563478fad..be76f2696f3 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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);