X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flisp%2Flexer.cpp;h=166d655221cb012052ce984c6a24e726429187c2;hb=50c73400fc84693668173ce680e9d51570e616f1;hp=cd4ab641cc2f72ffe6381b697741885608006acd;hpb=b49cbc5f242edb7023153f8bae9ceb444a2460da;p=supertux.git diff --git a/src/lisp/lexer.cpp b/src/lisp/lexer.cpp index cd4ab641c..166d65522 100644 --- a/src/lisp/lexer.cpp +++ b/src/lisp/lexer.cpp @@ -66,6 +66,10 @@ Lexer::nextChar() ++bufend; } } + + if(bufpos == NULL) + return; + c = *bufpos++; if(c == '\n') ++linenumber;