aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-10-26 20:36:46 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-10-26 20:36:46 +0100
commit14aecbb288b71bbb79ddca638918318c9298200b (patch)
tree16f8d71fec6807f5405f0076da7d1cb87c89b7c8 /src/libutil
parentb875b8f45c8d73c26e2cf13843fa25cc6762eebc (diff)
BaseSetting<StringMap>::set(): Don't append to previous value
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/config.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/config.cc b/src/libutil/config.cc
index 521733025..eef01bde2 100644
--- a/src/libutil/config.cc
+++ b/src/libutil/config.cc
@@ -270,6 +270,7 @@ template<> std::string BaseSetting<StringSet>::to_string() const
template<> void BaseSetting<StringMap>::set(const std::string & str)
{
+ value.clear();
auto kvpairs = tokenizeString<Strings>(str);
for (auto & s : kvpairs)
{