[seahorse/expires-created-datetime: 4/4] 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: 4/4] pgp/key-properties: initialize uri_list
- Date: Sun, 21 Feb 2021 19:54:09 +0000 (UTC)
commit a6f26a8fd1a573ca564dc7dda2faa46447f4b57d
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]