From 6b877d10a2d1b1c554f03031192e3ca1b2976f08 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Mon, 27 Feb 2012 22:39:48 +0100 Subject: [PATCH] fix uninitialized pointer at the end of list when creating list of config options --- src/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.c b/src/config.c index aa0e67e..cf3462d 100644 --- a/src/config.c +++ b/src/config.c @@ -76,6 +76,7 @@ void InitConfig() { new->name[0] = '\0'; new->value = malloc(sizeof(char)*255); new->value[0] = '\0'; + new->next = NULL; for (int i=0; i