lexer: Properly initialize lexer->prog when lex_get_line_raw() fails.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 28 Sep 2010 01:51:22 +0000 (18:51 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 28 Sep 2010 01:51:22 +0000 (18:51 -0700)
commit8d6cf4ebe48880408d0dddcfe8019aad8b816c27
treeee6269068bb4ce4aa7374cdd6427b20d3edc1cd8
parentbd39d7d8225e1d0f4e2e93ebe28f4aba820a23a8
lexer: Properly initialize lexer->prog when lex_get_line_raw() fails.

lex_get_line(), the main caller of lex_get_line_raw(), set lexer->prog to
NULL when reading failed, but other callers need to do the same thing too,
otherwise e.g. DO REPEAT accesses invalid storage when there is a missing
END REPEAT.

Bug #31016.
src/language/lexer/lexer.c