summaryrefslogtreecommitdiff
path: root/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index 34026763..b86e0836 100644
--- a/conf.c
+++ b/conf.c
@@ -160,6 +160,9 @@ conf_set_str (const char *key, const char *val) {
}
prev = it;
}
+ if (!val) {
+ return;
+ }
DB_conf_item_t *it = malloc (sizeof (DB_conf_item_t));
memset (it, 0, sizeof (DB_conf_item_t));
it->key = strdup (key);