From 70185eba035aca2e4bcef1f309787b2bd97f70e2 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 16 Feb 2010 02:40:19 +0000 Subject: [PATCH] initialComponents is unsigned, so can't -1 from it; just return if the components list is empty CCBUG:227118 svn path=/branches/KDE/4.4/kdelibs/; revision=1090802 --- runnercontext.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runnercontext.cpp b/runnercontext.cpp index bb1d9f682..9226c717e 100644 --- a/runnercontext.cpp +++ b/runnercontext.cpp @@ -128,6 +128,10 @@ bool correctPathCase(const QString& path, QString &corrected) components.pop_back(); } + if (components.isEmpty()) { + return true; + } + QString correctPath; const unsigned initialComponents = components.size(); for (unsigned i = 0; i < initialComponents - 1; i ++) {