[glib/tingping/fix-uri-not-nulling] guri: Fix user passed to g_uri_split_with_user() not being NULL'd




commit 8b319a687b17cf9dd91a36d9796654df20a8d7a6
Author: Patrick Griffis <pgriffis igalia com>
Date:   Wed Sep 2 15:43:58 2020 -0500

    guri: Fix user passed to g_uri_split_with_user() not being NULL'd

 glib/guri.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/glib/guri.c b/glib/guri.c
index 5fe29f29d..ad467987b 100644
--- a/glib/guri.c
+++ b/glib/guri.c
@@ -696,6 +696,8 @@ g_uri_split_internal (const gchar  *uri_string,
     *scheme = NULL;
   if (userinfo)
     *userinfo = NULL;
+  if (user)
+    *user = NULL;
   if (password)
     *password = NULL;
   if (auth_params)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]