fixes use of uninitialized variable (bug #5723)

This commit is contained in:
Jörg Hinrichs 2006-04-09 17:46:53 +00:00
parent a074f5e48c
commit 87e23372df

View file

@ -146,7 +146,7 @@ namespace gui{
if(matches.empty()) {
best_match = *i;
} else {
int j;
int j = 0;
while(toupper(best_match[j]) == toupper((*i)[j])) j++;
best_match.erase(best_match.begin()+j,best_match.end());
}