mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 11:13:12 +02:00
core: check that option is not NULL in function config_file_option_value_to_string
This commit is contained in:
@@ -1748,6 +1748,9 @@ config_file_option_value_to_string (struct t_config_option *option,
|
||||
const char *ptr_value;
|
||||
int enabled, length;
|
||||
|
||||
if (!option)
|
||||
return NULL;
|
||||
|
||||
if ((default_value && !option->default_value)
|
||||
|| (!default_value && !option->value))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user