Commit 67c9d34d authored by Philip Withnall's avatar Philip Withnall

guri: Allow params to be NULL if length is 0

Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
parent ab33896b
......@@ -1781,7 +1781,7 @@ g_uri_parse_params (const gchar *params,
const gchar *end, *attr, *attr_end, *value, *value_end;
gchar *decoded_attr, *decoded_value;
g_return_val_if_fail (params != NULL, NULL);
g_return_val_if_fail (length == 0 || params != NULL, NULL);
g_return_val_if_fail (length >= -1, NULL);
if (case_insensitive)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment