X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/13ca549a750537731955700f92ea2b9288eb3020..2cec70b9f139dd207022c35fdbe8b49fd1cf230d:/src/output.c diff --git a/src/output.c b/src/output.c index dfbfbb50..c424716c 100644 --- a/src/output.c +++ b/src/output.c @@ -375,12 +375,11 @@ action_row (state_t *state) /* See which tokens are an explicit error in this state (due to %nonassoc). For them, record MINSHORT as the action. */ - if (errp) - for (i = 0; i < errp->nerrs; i++) - { - int symbol = errp->errs[i]; - actrow[symbol] = MINSHORT; - } + for (i = 0; i < errp->nerrs; i++) + { + int symbol = errp->errs[i]; + actrow[symbol] = MINSHORT; + } /* Now find the most common reduction and make it the default action for this state. */ @@ -903,9 +902,9 @@ output_actions (void) for (i = 0; i < nstates; ++i) { - XFREE (state_table[i]->shifts); + free (state_table[i]->shifts); XFREE (state_table[i]->reductions); - XFREE (state_table[i]->errs); + free (state_table[i]->errs); free (state_table[i]); } XFREE (state_table);