2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-01 14:55:12 +00:00

only clear data structures on a parse error

This commit is contained in:
Todd C. Miller
1995-03-27 20:16:32 +00:00
parent 6876438abf
commit e24031eab0

View File

@@ -113,8 +113,10 @@ char *s;
yywrap() yywrap()
{ {
/* reset values so we can reparse cleanly */ /* reset values so we can reparse cleanly */
reset_aliases(); if (parse_error) {
top = 0; reset_aliases();
top = 0;
}
return(1); return(1);
} }