From a386fbb665c1d0c1897b0bf67d2f0838d1e8490f Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 18 Aug 2014 14:30:52 +0400 Subject: [PATCH] Avoid mutually exclusive checks --- lib/executionpath.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/executionpath.cpp b/lib/executionpath.cpp index c91932f13..c42b4f72d 100644 --- a/lib/executionpath.cpp +++ b/lib/executionpath.cpp @@ -412,13 +412,12 @@ void ExecutionPath::checkScope(const Token *tok, std::list &che // parse next "if".. tok = tok->tokAt(2); - if (tok && tok->str() == "if") - continue; - if (!tok) { ExecutionPath::bailOut(newchecks); return; } + if (tok->str() == "if") + continue; // there is no "if".. ExecutionPath::checkScope(tok->next(), checks);