diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 3987fe3f0..30550ef2c 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -24,6 +24,7 @@ New features:: Bug fixes:: + * api: fix search of option when the section is not given in functions config_search_option and config_search_section_option * irc: fix parsing of TAGMSG message when there is a colon before the channel [[v3.3]] diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c index 8bc734697..014e06d71 100644 --- a/src/core/wee-config-file.c +++ b/src/core/wee-config-file.c @@ -847,7 +847,7 @@ config_file_search_option (struct t_config_file *config_file, if (rc == 0) return ptr_option; else if (rc < 0) - return NULL; + break; } } else if (config_file) @@ -862,7 +862,7 @@ config_file_search_option (struct t_config_file *config_file, if (rc == 0) return ptr_option; else if (rc < 0) - return NULL; + break; } } } @@ -908,7 +908,7 @@ config_file_search_section_option (struct t_config_file *config_file, return; } else if (rc < 0) - return; + break; } } else if (config_file) @@ -927,7 +927,7 @@ config_file_search_section_option (struct t_config_file *config_file, return; } else if (rc < 0) - return; + break; } } }