mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 19:16:44 +01:00
fix uninitialized pointer at the end of list when creating list of config options
This commit is contained in:
parent
631e3bc940
commit
6b877d10a2
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ void InitConfig() {
|
||||||
new->name[0] = '\0';
|
new->name[0] = '\0';
|
||||||
new->value = malloc(sizeof(char)*255);
|
new->value = malloc(sizeof(char)*255);
|
||||||
new->value[0] = '\0';
|
new->value[0] = '\0';
|
||||||
|
new->next = NULL;
|
||||||
for (int i=0; i<strlen(string); i++) {
|
for (int i=0; i<strlen(string); i++) {
|
||||||
if (string[i]=='=') { before=false; continue; }
|
if (string[i]=='=') { before=false; continue; }
|
||||||
char temp[2];
|
char temp[2];
|
||||||
|
|
Loading…
Reference in a new issue