core: fix search of option when the section is not given

This commit is contained in:
Sébastien Helleu 2021-09-27 22:35:14 +02:00
parent fb57ad147e
commit 301f0942c6
2 changed files with 5 additions and 4 deletions

View File

@ -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]]

View File

@ -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;
}
}
}