From fe9d491aaee9a11ab87afcf10895a6e4d7d85203 Mon Sep 17 00:00:00 2001 From: August Sodora Date: Sat, 25 Feb 2012 11:13:40 -0800 Subject: [PATCH] 3619 Check that tok2->next() exists before using --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 1c7cca614..1225f6029 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -845,7 +845,7 @@ static Token *processFunc(Token *tok2, bool inOperator) } // skip over typedef parameter - if (tok2->next()->str() == "(") { + if (tok2->next() && tok2->next()->str() == "(") { tok2 = tok2->next()->link(); if (tok2->next()->str() == "(")