mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-22 11:45:45 -04:00
Correctly initialize retVal.
This commit is contained in:
parent
a98594c084
commit
b996a2877c
@ -762,7 +762,7 @@ bool Reader::searchSuggestionsSmart(const string& prefix,
|
|||||||
unsigned int suggestionsCount)
|
unsigned int suggestionsCount)
|
||||||
{
|
{
|
||||||
std::vector<std::string> variants = this->getTitleVariants(prefix);
|
std::vector<std::string> variants = this->getTitleVariants(prefix);
|
||||||
bool retVal;
|
bool retVal = false;
|
||||||
|
|
||||||
this->suggestions.clear();
|
this->suggestions.clear();
|
||||||
this->suggestionsOffset = this->suggestions.begin();
|
this->suggestionsOffset = this->suggestions.begin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user