1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 03:03:12 +02:00

core: do not call check callback when setting default value of option

This commit is contained in:
Sébastien Helleu
2023-03-19 15:23:10 +01:00
parent d47d9c5ed5
commit 0f4ef874ca
2 changed files with 1 additions and 13 deletions
-12
View File
@@ -1864,18 +1864,6 @@ config_file_option_set_default (struct t_config_option *option,
rc = WEECHAT_CONFIG_OPTION_SET_ERROR;
if (option->callback_check_value)
{
if (!(int)(option->callback_check_value) (
option->callback_check_value_pointer,
option->callback_check_value_data,
option,
value))
{
return WEECHAT_CONFIG_OPTION_SET_ERROR;
}
}
if (value)
{
old_value_was_null = (option->default_value == NULL);