]> granicus.if.org Git - sudo/commitdiff
now zeros "top"
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 6 Apr 1995 20:14:08 +0000 (20:14 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 6 Apr 1995 20:14:08 +0000 (20:14 +0000)
visudo.c

index 90c51bd556eda0e3edf7831ea9cb66b66925467d..9ed70b9fd7a53128bb00f36f398573f36d65dc35 100644 (file)
--- a/visudo.c
+++ b/visudo.c
@@ -89,7 +89,7 @@ int ntwk_matches              __P((char *));
  * External globals
  */
 extern FILE *yyin, *yyout;
-extern int errorlineno, sudolineno;
+extern int errorlineno, sudolineno, top;
 
 
 /*
@@ -287,6 +287,7 @@ int main(argc, argv)
            parse_error = FALSE;
            errorlineno = -1;
            sudolineno = 1;
+           top = 0;
 
            /* parse the sudoers file */
            if (yyparse()) {