diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-05-02 13:27:17 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-05-02 13:27:17 -0600 |
commit | 899add50a9ab6ad963b3f849c033326fb95866da (patch) | |
tree | 69d88a17d227edf97318a6952cd873b1e38dab59 /plugins/sudoers/gram.c | |
parent | 694570c497da08c04dbe233a7015022b5658a524 (diff) | |
download | sudo-899add50a9ab6ad963b3f849c033326fb95866da.tar.gz |
Add reset_parser() and use in place of init_parser(NULL).
Diffstat (limited to 'plugins/sudoers/gram.c')
-rw-r--r-- | plugins/sudoers/gram.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/sudoers/gram.c b/plugins/sudoers/gram.c index 5cbdaca34..f1d784839 100644 --- a/plugins/sudoers/gram.c +++ b/plugins/sudoers/gram.c @@ -4007,6 +4007,12 @@ init_parser(const char *file) return init_parser_ext(file, NULL, false, 1); } +bool +reset_parser(void) +{ + return init_parser_ext(NULL, NULL, false, 1); +} + /* * Initialize all options in a cmndspec. */ |