2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +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()
{
/* reset values so we can reparse cleanly */
reset_aliases();
top = 0;
if (parse_error) {
reset_aliases();
top = 0;
}
return(1);
}