summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 06e36cd..d106f27 100644
--- a/config.c
+++ b/config.c
@@ -122,7 +122,7 @@ tern_node * parse_config(char * config_data)
if (prefix) {
key = alloc_concat(prefix, key);
}
- head = tern_insert_ptr(head, key, val);
+ head = tern_insert_ptr(head, key, strdup(val));
if (prefix) {
free(key);
}