diff config.c @ 431:440efd7d27a9

Read key bindings from config file
author Mike Pavone <pavone@retrodev.com>
date Wed, 10 Jul 2013 22:48:17 -0700
parents 7f84090ab1cd
children 140af5509ce7
line wrap: on
line diff
--- a/config.c	Wed Jul 10 09:38:05 2013 -0700
+++ b/config.c	Wed Jul 10 22:48:17 2013 -0700
@@ -122,7 +122,7 @@
 				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);
 				}