fixes use of uninitialized variable (bug #5723)
This commit is contained in:
parent
a074f5e48c
commit
87e23372df
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue