From 122bf9de037f578cc4862b1dc775b6589d56057d Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Wed, 10 Jul 2013 22:48:17 -0700 Subject: Read key bindings from config file --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.c') 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); } -- cgit v1.2.3