[glib: 2/8] guri: Allow params to be NULL if length is 0
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/8] guri: Allow params to be NULL if length is 0
- Date: Wed, 1 Jul 2020 12:59:41 +0000 (UTC)
commit 67c9d34d71fc00c99974f6c15cc06e4d9f2bfef8
Author: Philip Withnall <withnall endlessm com>
Date: Wed Jul 1 11:41:05 2020 +0100
guri: Allow params to be NULL if length is 0
Signed-off-by: Philip Withnall <withnall endlessm com>
glib/guri.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/guri.c b/glib/guri.c
index 5b3b721a6..de9f43875 100644
--- a/glib/guri.c
+++ b/glib/guri.c
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]