* src/reader.c (packgram): No longer end `ritem' with a 0

sentinel: it is not used.
This commit is contained in:
Akim Demaille
2002-05-06 08:23:28 +00:00
parent 9bbd181ae0
commit a900a6248c
4 changed files with 11 additions and 10 deletions

View File

@@ -1740,7 +1740,7 @@ packgram (void)
int ruleno;
symbol_list *p;
ritem = XCALLOC (item_number_t, nritems + 1);
ritem = XCALLOC (item_number_t, nritems);
rules = XCALLOC (rule_t, nrules) - 1;
itemno = 0;
@@ -1787,7 +1787,6 @@ packgram (void)
p = p->next;
}
ritem[itemno] = 0;
assert (itemno == nritems);
if (trace_flag)