aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-07-27 11:35:01 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-08-14 17:50:31 +0200
commitcffe85f975413441b8fbc5bda82fd2c9d75476f5 (patch)
tree1c297659ea28d90c4ecbe891bfaf6417469b79ec
parent6fb8f5f17c079a7d32c855eae313c740e5f9e6be (diff)
Skip sys::system(...) call in case of empty command
-rw-r--r--src/util.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index ba563478fa..be76f2696f 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);