Fix uninitialized member in Lexer constructor

Fixes coverity issue 23501.
This commit is contained in:
Jean-Marc Lasgouttes 2015-03-05 12:24:47 +01:00
parent c925748126
commit 0e2ef88b43

View File

@ -64,10 +64,10 @@ class Lexer
{
public:
/// initialize Lexer with no special keywords.
Lexer();
Lexer();
/// initialize Lexer with a bunch of keywords
template<int N> Lexer(LexerKeyword (&table)[N])
: pimpl_(0) { init(table, N); }
: pimpl_(0), lastReadOk_(false) { init(table, N); }
///
~Lexer();