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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user