Initialize ptr->next in es_addsymbol
This commit is contained in:
parent
cdc2cbaee2
commit
10f61474be
@ -10,6 +10,7 @@ void es_addsymbol(tExtstring* string, char symbol) {
|
||||
};
|
||||
ptr->next = malloc(sizeof(tExtstring));
|
||||
ptr->next->symbol = symbol;
|
||||
ptr->next->next = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user