mirror of
https://github.com/NixOS/nix
synced 2025-06-28 05:21:16 +02:00
BaseSetting<StringMap>::set(): Don't append to previous value
This commit is contained in:
parent
b875b8f45c
commit
14aecbb288
1 changed files with 1 additions and 0 deletions
|
@ -270,6 +270,7 @@ template<> std::string BaseSetting<StringSet>::to_string() const
|
||||||
|
|
||||||
template<> void BaseSetting<StringMap>::set(const std::string & str)
|
template<> void BaseSetting<StringMap>::set(const std::string & str)
|
||||||
{
|
{
|
||||||
|
value.clear();
|
||||||
auto kvpairs = tokenizeString<Strings>(str);
|
auto kvpairs = tokenizeString<Strings>(str);
|
||||||
for (auto & s : kvpairs)
|
for (auto & s : kvpairs)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue