Avoid infinite recursion when the alias changes only the section name.

pull/1191/head
John Ralls 5 years ago
parent 7885353fe3
commit 29a2365fdf

@ -227,7 +227,7 @@ GncOptionDB::find_option(const std::string& section, const char* name) const
* nullptr. GncOptionSection::find_option already checked if the alias
* should have been in the same section.
*/
if (alias && alias->first)
if (alias && alias->first && section != alias->first)
return find_option(alias->first, alias->second);
return nullptr;
}

Loading…
Cancel
Save