From 9569f758f824d17c9e2486998f8f75a868d0c80b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 25 Aug 2009 17:54:04 +0200 Subject: [PATCH] fixed segmentation fault --- src/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tokenize.cpp b/src/tokenize.cpp index 317d33b4f..31e70985e 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -2880,7 +2880,7 @@ bool Tokenizer::simplifyKnownVariables() bailOutFromLoop = tok3->link(); continue; } - else if (tok3->str() == "}" && tok3->link()->previous()->str() == ")") + else if (tok3->str() == "}" && tok3->link() && tok3->link()->previous()->str() == ")") { // Assignment was in the middle of possible loop, bail out. break;