Merge pull request #193 from kiwix/fix_uninitalized

Correctly initialize retVal.
This commit is contained in:
Matthieu Gautier 2019-01-23 12:05:34 +01:00 committed by GitHub
commit ecb2a80baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -762,7 +762,7 @@ bool Reader::searchSuggestionsSmart(const string& prefix,
unsigned int suggestionsCount)
{
std::vector<std::string> variants = this->getTitleVariants(prefix);
bool retVal;
bool retVal = false;
this->suggestions.clear();
this->suggestionsOffset = this->suggestions.begin();