Hopefully fix coverity issues
authorTobias Markus <tobbi@mozilla-uk.org>
Mon, 23 Feb 2015 00:02:08 +0000 (01:02 +0100)
committerTobias Markus <tobbi@mozilla-uk.org>
Mon, 23 Feb 2015 00:02:08 +0000 (01:02 +0100)
src/lisp/lexer.cpp

index cd4ab64..166d655 100644 (file)
@@ -66,6 +66,10 @@ Lexer::nextChar()
       ++bufend;
     }
   }
+
+  if(bufpos == NULL)
+    return;
+
   c = *bufpos++;
   if(c == '\n')
     ++linenumber;