aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-11-29 16:50:49 -0800
committerMatt Corallo <git@bluematt.me>2016-12-23 21:30:15 -0500
commit2b5f085ad11b4b354f48d77e66698fa386c8abbd (patch)
treec4271c5b5007958565d443d76829d8dbf5135981 /src/util.h
parentc8042a48f01aaf306e108683e40db4bfaf0bbcaa (diff)
downloadbitcoin-2b5f085ad11b4b354f48d77e66698fa386c8abbd.tar.xz
Fix non-const mapMultiArgs[] access after init.
Swap mapMultiArgs for a const-reference to a _mapMultiArgs which is only accessed in util.cpp
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 4fb09046bd..5d1d80d2df 100644
--- a/src/util.h
+++ b/src/util.h
@@ -42,7 +42,7 @@ public:
};
extern std::map<std::string, std::string> mapArgs;
-extern std::map<std::string, std::vector<std::string> > mapMultiArgs;
+extern const std::map<std::string, std::vector<std::string> >& mapMultiArgs;
extern bool fDebug;
extern bool fPrintToConsole;
extern bool fPrintToDebugLog;