diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-10-26 20:36:46 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-10-26 20:36:46 +0100 |
commit | 14aecbb288b71bbb79ddca638918318c9298200b (patch) | |
tree | 16f8d71fec6807f5405f0076da7d1cb87c89b7c8 /src/libutil/config.cc | |
parent | b875b8f45c8d73c26e2cf13843fa25cc6762eebc (diff) |
BaseSetting<StringMap>::set(): Don't append to previous value
Diffstat (limited to 'src/libutil/config.cc')
-rw-r--r-- | src/libutil/config.cc | 1 |
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) { |