[glib] gfile: Initialize variable to pacify static analysis



commit feec280b7c5c7b9198e34b10b4f5764c9c3c4505
Author: Colin Walters <walters verbum org>
Date:   Tue Jul 22 13:58:53 2014 -0400

    gfile: Initialize variable to pacify static analysis
    
    Not a real bug, but will quiet the analysis.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733576

 gio/gfile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gfile.c b/gio/gfile.c
index 9cf3f4d..d69c0d5 100644
--- a/gio/gfile.c
+++ b/gio/gfile.c
@@ -7507,7 +7507,7 @@ measure_disk_usage_thread (GTask        *task,
 {
   MeasureTaskData *data = task_data;
   GError *error = NULL;
-  MeasureResult result;
+  MeasureResult result = { 0, };
 
   if (g_file_measure_disk_usage (source_object, data->flags, cancellable,
                                  data->progress_callback ? measure_disk_usage_progress : NULL, task,


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