summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-04-05 19:21:23 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-04-05 19:21:23 +0200
commit71fe8c9353cfa621c70994daca6c1a38b9bfc7bc (patch)
treede4399ea2ac63ea5a5ef8e3c3479b85ca8b3f964 /src/core
parent78a9101114f76602c9720fc15d49f0350645db23 (diff)
downloadweechat-71fe8c9353cfa621c70994daca6c1a38b9bfc7bc.zip
Fix creation of integer options, when created from a script plugin (if string_values is empty but not NULL)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-config-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c
index 76a3d4f4e..7eafb1085 100644
--- a/src/core/wee-config-file.c
+++ b/src/core/wee-config-file.c
@@ -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,