Fixed #1051 (segmentation fault when there is syntax error)

This commit is contained in:
Daniel Marjamäki 2009-12-06 09:02:13 +01:00
parent 75f6e20e61
commit a5e43b4be5
1 changed files with 2 additions and 0 deletions

View File

@ -4616,6 +4616,8 @@ void Tokenizer::simplifyComma()
startFrom->previous()->deleteThis(); startFrom->previous()->deleteThis();
tok = endAt; tok = endAt;
if (!tok)
return;
} }
} }