aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-06-27 14:22:54 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2017-06-27 16:29:11 +0200
commitac52492cd22782d7b09c78c198fb6fd8eb1da57c (patch)
treee02f1da9e4323a3dcf37b829dcf87656983a0d4d /src/util.cpp
parent7c87a9c748be7121a240d81f9a5c6c988be6ffcf (diff)
parented866ab923c01d9da2ddd067144e74978383e304 (diff)
Merge #10118: Util: Remove redundant calls to argsGlobal.IsArgSet()
ed866ab Indentation after 'Remove redundant calls to gArgs.IsArgSet()' (Jorge Timón) 506b700 Util: Remove redundant calls to gArgs.IsArgSet() (Jorge Timón) Tree-SHA512: 4f97a0bf2a76c0f351a6343db62898cf057d745c848de00fa09465e870a120f28e0d836cafd6a047f4ec0da7ab671aebee43fa7410c9f0e66382edd1bb2009ba
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 0e1464e590..b76c173f90 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -422,7 +422,9 @@ void ArgsManager::ParseParameters(int argc, const char* const argv[])
std::vector<std::string> ArgsManager::GetArgs(const std::string& strArg)
{
LOCK(cs_args);
- return mapMultiArgs.at(strArg);
+ if (IsArgSet(strArg))
+ return mapMultiArgs.at(strArg);
+ return {};
}
bool ArgsManager::IsArgSet(const std::string& strArg)