[glib/wip/oholy/x-gvfs-notrash: 2/10] guri: Allow params to be NULL if length is 0
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/oholy/x-gvfs-notrash: 2/10] guri: Allow params to be NULL if length is 0
- Date: Wed, 5 Aug 2020 12:04:51 +0000 (UTC)
commit 159f98907ef1e7de81278a2c26b8053bc4c2a8af
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 859c4a482..486501fcb 100644
--- a/glib/guri.c
+++ b/glib/guri.c
@@ -1782,7 +1782,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]