From c09cfc1c8a218a320faa7f624e6ac3194fcd8049 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Thu, 2 Jan 2014 12:54:12 -0500 Subject: [PATCH] GFile: fix uninitialised variable clang cause the fact that some of our 'goto out;' cases cause use to try and free an uninitialised GString. Fix that up. --- gio/gfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gfile.c b/gio/gfile.c index fb800a6c4..a832e9128 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -2633,7 +2633,7 @@ build_attribute_list_for_copy (GFile *file, { gboolean ret = FALSE; GFileAttributeInfoList *attributes = NULL, *namespaces = NULL; - GString *s; + GString *s = NULL; gboolean first; int i; gboolean copy_all_attributes;