From fc8762e6dbf95dcfa9f500015b9703d7d1b96eef Mon Sep 17 00:00:00 2001
From: con <qtc-committer@nokia.com>
Date: Wed, 4 Feb 2009 20:41:41 +0100
Subject: [PATCH] Fixes:    - Crash in .pro file reader.

Details:  - Happened in release builds when opening pro files with
CONFIG scopes and a non-valid Qt version set.
---
 src/shared/proparser/profileevaluator.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp
index c67f976e59c..28a30f2a03b 100644
--- a/src/shared/proparser/profileevaluator.cpp
+++ b/src/shared/proparser/profileevaluator.cpp
@@ -1666,7 +1666,7 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct
             }
             const QStringList mutuals = args[1].split(QLatin1Char('|'));
             const QStringList &configs = valuesDirect(QLatin1String("CONFIG"));
-            for (int i = configs.size() - 1 && ok; i >= 0; i--) {
+            for (int i = configs.size() - 1; i >= 0; i--) {
                 for (int mut = 0; mut < mutuals.count(); mut++) {
                     if (configs[i] == mutuals[mut].trimmed()) {
                         cond = (configs[i] == args[0]);
-- 
GitLab