aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2017-01-03 20:33:55 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2017-06-05 21:04:42 +0000
commit74e87389616ce1147c65f0e49f3d84b817693ac6 (patch)
tree5cb384819ed19322238fd6bf72f7c19a6512bf88 /src/util.cpp
parent23fb9adaea01c7baece6e1269e65713571088c5f (diff)
downloadbitcoin-74e87389616ce1147c65f0e49f3d84b817693ac6.tar.xz
Bugfix: ForceSetArg should replace entr(ies) in mapMultiArgs, not append
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 653a4f072a..745c3e3bc0 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -477,6 +477,7 @@ void ArgsManager::ForceSetArg(const std::string& strArg, const std::string& strV
{
LOCK(cs_args);
mapArgs[strArg] = strValue;
+ mapMultiArgs[strArg].clear();
mapMultiArgs[strArg].push_back(strValue);
}