Initialize ptr->next in es_addsymbol

This commit is contained in:
bʰedoh₂ swé 2024-06-05 00:11:06 +05:00
parent cdc2cbaee2
commit 10f61474be

View File

@ -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;
}