aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/config_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/config_file.cc')
-rw-r--r--paludis/util/config_file.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/util/config_file.cc b/paludis/util/config_file.cc
index 112c53a34..708df8186 100644
--- a/paludis/util/config_file.cc
+++ b/paludis/util/config_file.cc
@@ -810,7 +810,10 @@ KeyValueConfigFile::KeyValueConfigFile(
want = false;
if (want)
- _imp->values[key] = transformation_function()(*this, key, get(key), value);
+ {
+ std::string new_value(transformation_function()(*this, key, get(key), value));
+ _imp->values[key] = new_value;
+ }
}
_imp->active_key_prefix = "";