From 6f6d2af900c095e6eb22f2dc242f02f26f537be9 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 7 Jan 2011 17:36:54 -0800 Subject: Initialize member variables in class Lex constructor. --- src/libs/lex/lex.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/lex/lex.cpp b/src/libs/lex/lex.cpp index 84891f1..d493910 100644 --- a/src/libs/lex/lex.cpp +++ b/src/libs/lex/lex.cpp @@ -45,6 +45,8 @@ Lex::Lex(const char* s, bool ignoreCase/* = false */) { input = s; p = input; ignoringCase = ignoreCase; + token = ERROR; + iValue = 0; } // Lex::Lex /////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3