fix uninitialized pointer at the end of list when creating list of config options

This commit is contained in:
Sebastian Krzyszkowiak 2012-02-27 22:39:48 +01:00
parent 631e3bc940
commit 6b877d10a2

View file

@ -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<strlen(string); i++) {
if (string[i]=='=') { before=false; continue; }
char temp[2];