1
0
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:
Sebastien Helleu
2009-04-05 19:21:23 +02:00
parent 78a9101114
commit 71fe8c9353
+1 -1
View File
@@ -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,