From ef83525cd021f87834d32b03c8e3d2c102c5a70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 4 Jul 2013 07:58:30 +0200 Subject: [PATCH] CheckUninitVar: Fixed GCC warning --- lib/checkuninitvar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index fe19d32c1..844e557ff 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -1528,7 +1528,7 @@ void CheckUninitVar::checkRhs(const Token *tok, const Variable &var, const std:: { bool rhs = false; unsigned int indent = 0; - while (tok = tok->next()) { + while (NULL != (tok = tok->next())) { if (tok->str() == "=") rhs = true; if (rhs && tok->varId() == var.varId()) {