Make sure stringify_flag is initialized.
stringify_flag should not be used uninitialized. Found with valgrind.
This commit is contained in:
parent
3c5bf034ca
commit
add84b153c
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue