From 51c2ded23f16b5b854fab397b440e4a414bd46fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 25 Jan 2018 19:42:50 +0100 Subject: [PATCH] Fix crash --- lib/checkuninitvar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index ba80f405a..23c21b2eb 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -1362,7 +1362,7 @@ static int isCallFunction(const Scope *scope, int argnr, const Token **tok) } if (!prev || !Token::Match(prev->previous(), "%name% (")) break; - if (!prev->astOperand1()->function()) + if (!prev->astOperand1() || !prev->astOperand1()->function()) break; *tok = prev->previous(); return argnr2;