From a40de29cbed65ce93e96bd3d5eeb4e9e87e80b39 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 9 Feb 2010 10:43:20 -0500 Subject: [PATCH] Avoid a duplicate fclose() of the sudoers file. --HG-- branch : 1.7 --- toke.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toke.l b/toke.l index 1d5bb8c8c..d5fc72400 100644 --- a/toke.l +++ b/toke.l @@ -840,7 +840,7 @@ init_lexer() efree(pl); } efree(istack[idepth].path); - if (!istack[idepth].keepopen) + if (idepth && !istack[idepth].keepopen) fclose(istack[idepth].bs->yy_input_file); yy_delete_buffer(istack[idepth].bs); }