[glib] GFile: fix uninitialised variable



commit c09cfc1c8a218a320faa7f624e6ac3194fcd8049
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Jan 2 12:54:12 2014 -0500

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gfile.c b/gio/gfile.c
index fb800a6..a832e91 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]