[seahorse/expires-created-datetime: 2/2] pgp/key-properties: initialize uri_list




commit 5de7f50302b0f4038bde04b7018de06a168d9822
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]