Accept NULL as empty string list

Fixes bug 580656.
This commit is contained in:
Matthias Clasen
2009-05-02 22:41:19 -04:00
parent a4ac1b0552
commit 2dfce32422

View File

@@ -1575,7 +1575,7 @@ g_key_file_set_string_list (GKeyFile *key_file,
gsize i;
g_return_if_fail (key_file != NULL);
g_return_if_fail (list != NULL);
g_return_if_fail (list != NULL || length == 0);
value_list = g_string_sized_new (length * 128);
for (i = 0; i < length && list[i] != NULL; i++)