summaryrefslogtreecommitdiff
path: root/src/nautilus-view-icon-controller.c
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2018-10-31 21:52:30 +0100
committerErnestas Kulik <ernestask@gnome.org>2018-10-31 21:52:30 +0100
commitaf87a20dc56f1b1ad4a87534bac5c1ff71ddda71 (patch)
treea44494ec4d2dc7bbdcb0610a9d31f69a3d58d1c2 /src/nautilus-view-icon-controller.c
parent4c2e9da9a904d074b699508a969403d004f321f8 (diff)
downloadnautilus-af87a20dc56f1b1ad4a87534bac5c1ff71ddda71.tar.gz
general: Null-initialize auto pointers
It’s not done in some places. After this commit, there still might be some missing, but this is all I gathered in a short amount of time.
Diffstat (limited to 'src/nautilus-view-icon-controller.c')
-rw-r--r--src/nautilus-view-icon-controller.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-view-icon-controller.c b/src/nautilus-view-icon-controller.c
index 10d075809..f96efbd81 100644
--- a/src/nautilus-view-icon-controller.c
+++ b/src/nautilus-view-icon-controller.c
@@ -894,8 +894,8 @@ real_add_files (NautilusFilesView *files_view,
GList *files)
{
NautilusViewIconController *self = NAUTILUS_VIEW_ICON_CONTROLLER (files_view);
- g_autoptr (GQueue) files_queue;
- g_autoptr (GQueue) item_models;
+ g_autoptr (GQueue) files_queue = NULL;
+ g_autoptr (GQueue) item_models = NULL;
files_queue = convert_glist_to_queue (files);
item_models = convert_files_to_item_models (self, files_queue);