diff --git a/c/parser.c b/c/parser.c index 04e7495..baaf34e 100644 --- a/c/parser.c +++ b/c/parser.c @@ -137,6 +137,9 @@ static struct node_list* create_node_list() { exit(1); } + list->size = 0; + list->capacity = 0; + list->items = NULL; return list; }