diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-27 11:35:01 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-08-14 17:50:31 +0200 |
commit | cffe85f975413441b8fbc5bda82fd2c9d75476f5 (patch) | |
tree | 1c297659ea28d90c4ecbe891bfaf6417469b79ec /src/util.cpp | |
parent | 6fb8f5f17c079a7d32c855eae313c740e5f9e6be (diff) |
Skip sys::system(...) call in case of empty command
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 1 |
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); |