[seahorse/expires-created-datetime: 3/3] 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: 3/3] pgp/key-properties: initialize uri_list
- Date: Mon, 22 Feb 2021 12:38:30 +0000 (UTC)
commit 81806a6f964bf9a0ece6f320290ea9daf147ea9d
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]