mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 10:13:12 +02:00
Fix creation of integer options, when created from a script plugin (if string_values is empty but not NULL)
This commit is contained in:
@@ -451,7 +451,7 @@ config_file_new_option (struct t_config_file *config_file,
|
||||
}
|
||||
break;
|
||||
case CONFIG_OPTION_TYPE_INTEGER:
|
||||
if (string_values)
|
||||
if (string_values && string_values[0])
|
||||
{
|
||||
new_option->string_values = string_explode (string_values,
|
||||
"|", 0, 0,
|
||||
|
||||
Reference in New Issue
Block a user