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
This commit is contained in:
Aaron J. Seigo 2010-02-16 02:40:19 +00:00
parent 1b191f52ba
commit 70185eba03

View File

@ -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 ++) {