diff options
| author | practicalswift <[email protected]> | 2017-07-27 11:35:01 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-08-14 17:50:31 +0200 |
| commit | cffe85f975413441b8fbc5bda82fd2c9d75476f5 (patch) | |
| tree | 1c297659ea28d90c4ecbe891bfaf6417469b79ec /src/util.cpp | |
| parent | Check that -blocknotify command is non-empty before executing (diff) | |
| download | discoin-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.cpp | 1 |
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); |