[seahorse/expires-created-datetime: 2/2] pgp/key-properties: initialize uri_list
- From: Niels De Graef <nielsdg src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [seahorse/expires-created-datetime: 2/2] pgp/key-properties: initialize uri_list
 
- Date: Sun, 21 Feb 2021 18:29:08 +0000 (UTC)
 
commit 6d97439d3ac062315d02922e40c0c5374f053266
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sun Feb 21 19:28:30 2021 +0100
    pgp/key-properties: initialize uri_list
    
    Always initialize g_auto* variables, or you'll get into troubles.
 pgp/seahorse-pgp-key-properties.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pgp/seahorse-pgp-key-properties.c b/pgp/seahorse-pgp-key-properties.c
index 7adbc2f0..79ef8e1c 100644
--- a/pgp/seahorse-pgp-key-properties.c
+++ b/pgp/seahorse-pgp-key-properties.c
@@ -521,7 +521,7 @@ on_pgp_owner_photo_drag_received (GtkWidget *widget,
 
         uri_list = gtk_selection_data_get_uris (sel_data);
         while (uri_list && uri_list[len]) {
-            g_autofree gchar *uri;
+            g_autofree char *uri = NULL;
 
             uri = g_filename_from_uri (uri_list[len], NULL, NULL);
             if (!uri)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]