1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: check that ptr_value is not NULL

This commit is contained in:
Sébastien Helleu
2023-07-04 19:15:20 +02:00
parent bcc061292d
commit 82daed8076
+2 -1
View File
@@ -1610,7 +1610,8 @@ config_weechat_update_cb (const void *pointer, void *data,
&& (strcmp (ptr_section, "key") == 0)
&& ((strcmp (ptr_option, "ctrl-H") == 0)
|| (strcmp (ptr_option, "ctrl-?") == 0))
&& (strcmp (ptr_value, "/input delete_previous_char") != 0))
&& (ptr_value
&& (strcmp (ptr_value, "/input delete_previous_char") != 0)))
{
new_option = string_tolower (ptr_option);
}