aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2017-07-27 11:35:01 +0200
committerpracticalswift <[email protected]>2017-08-14 17:50:31 +0200
commitcffe85f975413441b8fbc5bda82fd2c9d75476f5 (patch)
tree1c297659ea28d90c4ecbe891bfaf6417469b79ec /src/util.cpp
parentCheck that -blocknotify command is non-empty before executing (diff)
downloaddiscoin-cffe85f975413441b8fbc5bda82fd2c9d75476f5.tar.xz
discoin-cffe85f975413441b8fbc5bda82fd2c9d75476f5.zip
Skip sys::system(...) call in case of empty command
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index ba563478f..be76f2696 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);