diff options
author | Vinson Lee <vlee@vmware.com> | 2011-01-07 17:36:54 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2011-01-07 17:36:54 -0800 |
commit | 6f6d2af900c095e6eb22f2dc242f02f26f537be9 (patch) | |
tree | b53dd188564cf9b9aa93799924b1c1ebc9cedf35 | |
parent | 7a978fdb434b73f0a33d9d87b6ee2e3ece69ca2d (diff) |
Initialize member variables in class Lex constructor.
-rw-r--r-- | src/libs/lex/lex.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 /////////////////////////////////////////////////////////////////////////////// |