summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-07-10 22:48:17 -0700
committerMike Pavone <pavone@retrodev.com>2013-07-10 22:48:17 -0700
commit122bf9de037f578cc4862b1dc775b6589d56057d (patch)
tree29777bacdb96d059f64f15b6749b876820600dfb /config.c
parent28b8256fddf53446898120f9b51a43f132d946bb (diff)
Read key bindings from config file
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);
}