diff options
author | Corey Berla <corey@berla.me> | 2022-07-31 12:55:45 -0700 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-08-01 07:13:02 +0000 |
commit | 1931fe2de6da2bd72f638f6dd8263bb2ae4172c9 (patch) | |
tree | b2652277d06e2e0aa8d8cba02a77309157c05619 | |
parent | 8c296a91c8a3e410edcb6471fa713eeaa3133d25 (diff) | |
download | nautilus-1931fe2de6da2bd72f638f6dd8263bb2ae4172c9.tar.gz |
properties-window: Initialize all g_auto variables
-rw-r--r-- | src/nautilus-properties-window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c index c4cb97394..97fa172fc 100644 --- a/src/nautilus-properties-window.c +++ b/src/nautilus-properties-window.c @@ -781,7 +781,7 @@ update_name_field (NautilusPropertiesWindow *self) if (!nautilus_file_is_gone (file)) { - g_autofree gchar *file_name; + g_autofree gchar *file_name = NULL; file_counter += 1; if (file_counter > 1) @@ -822,7 +822,7 @@ file_list_get_string_attribute (GList *file_list, } else { - g_autofree char *attr; + g_autofree char *attr = NULL; attr = nautilus_file_get_string_attribute_with_default (file, attribute_name); if (!g_str_equal (attr, first_attr)) { @@ -853,7 +853,7 @@ add_extension_page (NautilusPropertyPage *property_page, GtkWidget *up_button; GtkWidget *box; const char *extension_type; - g_autofree char *navigation_label; + g_autofree char *navigation_label = NULL; row = adw_action_row_new (); image = gtk_image_new_from_icon_name ("go-next-symbolic"); @@ -3020,7 +3020,7 @@ create_permissions_row (NautilusPropertiesWindow *self, FilterType filter_type) { g_autoptr (GtkExpression) expression = NULL; - g_autoptr (GListModel) model; + g_autoptr (GListModel) model = NULL; expression = gtk_property_expression_new (NAUTILUS_TYPE_PERMISSION_ENTRY, NULL, "name"); adw_combo_row_set_expression (row, expression); |