From 29a2365fdf17161f05c5cb2012b8f9ef450e6e06 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 13 Jul 2021 09:46:48 -0700 Subject: [PATCH] Avoid infinite recursion when the alias changes only the section name. --- libgnucash/app-utils/gnc-optiondb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgnucash/app-utils/gnc-optiondb.cpp b/libgnucash/app-utils/gnc-optiondb.cpp index 8f8688fb8d..abb80efed1 100644 --- a/libgnucash/app-utils/gnc-optiondb.cpp +++ b/libgnucash/app-utils/gnc-optiondb.cpp @@ -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; }