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