diff --git a/gram.y b/gram.y index 706e1a661..1e7c2dd42 100644 --- a/gram.y +++ b/gram.y @@ -671,7 +671,7 @@ init_parser(path, quiet) init_aliases(); efree(sudoers); - sudoers = estrdup(path); + sudoers = path ? estrdup(path) : NULL; parse_error = FALSE; errorlineno = -1;