initialComponents is unsigned, so can't -1 from it; just return if the components list is empty
BUG:227118 svn path=/trunk/KDE/kdelibs/; revision=1090799
This commit is contained in:
parent
8b550a13ad
commit
32683cd664
@ -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 ++) {
|
||||
|
Loading…
Reference in New Issue
Block a user