Fix for coverity #29409 - Use char 0 instead of NULL
[supertux.git] / src / lisp / lexer.cpp
index 23e95cd..ef1925f 100644 (file)
 namespace lisp {
 
 Lexer::Lexer(std::istream& newstream) :
-  stream(newstream), 
-  eof(false), 
+  stream(newstream),
+  eof(false),
   linenumber(0),
   bufend(),
   bufpos(),
   c(),
+  token_string(),
   token_length()
 {
   // trigger a refill of the buffer
-  bufpos = NULL;
-  bufend = NULL;
+  bufpos = '\0';
+  bufend = '\0';
   nextChar();
 }