Make sure stringify_flag is initialized.

stringify_flag should not be used uninitialized.
Found with valgrind.
This commit is contained in:
Cary R 2008-05-12 17:55:10 -07:00 committed by Stephen Williams
parent 3c5bf034ca
commit add84b153c
1 changed files with 2 additions and 0 deletions

View File

@ -1471,6 +1471,7 @@ static void do_include()
fprintf(yyout, "\n`line %u \"%s\" 1\n", istack->lineno+1, standby->path);
standby->next = istack;
standby->stringify_flag = 0;
istack->yybs = YY_CURRENT_BUFFER;
istack = standby;
@ -1710,6 +1711,7 @@ void reset_lexor(FILE* out, char* paths[])
isp->str = 0;
isp->ebs = 0;
isp->lineno = 0;
isp->stringify_flag = 0;
if (isp->file == 0)
{