From efc84ac310d0ed8512e7a261b53a31bbac21b135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 29 Mar 2014 20:41:17 +0100 Subject: [PATCH] Fix segmentation fault when checking build/tokenize.cpp --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 96cfe49bc..0a64d0536 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -3318,7 +3318,7 @@ void CheckOther::checkNegativeBitwiseShift() continue; if (!rhs->isNumber() && !rhs->variable()) continue; - if (!rhs->variable()->typeStartToken()->isStandardType()) + if (rhs->variable() && !rhs->variable()->typeStartToken()->isStandardType()) continue; }