Fix an venerable bug: if we're reducing a rule that has an empty
commit5a60e9067d72bb33b8f23ae46f12879b1777aa8a
authormneumann <mneumann>
Sat, 12 Jul 2008 16:52:48 +0000 (12 16:52 +0000)
committermneumann <mneumann>
Sat, 12 Jul 2008 16:52:48 +0000 (12 16:52 +0000)
tree98a1012041af90a91f5ca51cca08c72cef604eda
parente01e689abaf180d30c790372e29dac19f662669c
Fix an venerable bug: if we're reducing a rule that has an empty
right hand side and the yacc stackpointer is pointing at the very
end of the allocated stack, we end up accessing the stack out of
bounds by the implicit $$ = $1 action.

Obtained-from: OpenBSD (skeleton.c rev 1.29)
usr.bin/yacc/skeleton.c