summaryrefslogtreecommitdiff
path: root/conf.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-05 19:09:58 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-05 19:09:58 +0100
commit0c15315d578087ed87fe4aff694928ba0ab27cef (patch)
treed6f95f4abbc219a1da3638a75549a690beda5101 /conf.c
parent98bf705a30417868fb8c5940c88cec48b065bfc3 (diff)
fixed crashbug caused by conf_remove_items
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 d3702457..2a374193 100644
--- a/conf.c
+++ b/conf.c
@@ -235,4 +235,7 @@ conf_remove_items (const char *key) {
if (prev) {
prev->next = next;
}
+ else {
+ conf_items = next;
+ }
}