[glib] gio/tests/gio-du.c: Avoid Using Unintialized Variable



commit 7a91a6c9a56c70a7b80a71376d3299e7f81fd7cb
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Sep 10 00:49:39 2013 +0800

    gio/tests/gio-du.c: Avoid Using Unintialized Variable
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707787

 gio/tests/gio-du.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/gio-du.c b/gio/tests/gio-du.c
index 4ed9941..12ac12b 100644
--- a/gio/tests/gio-du.c
+++ b/gio/tests/gio-du.c
@@ -72,7 +72,7 @@ report_progress (gboolean reporting,
 int
 main (int argc, char **argv)
 {
-  GFileMeasureProgressCallback progress;
+  GFileMeasureProgressCallback progress = NULL;
   GFileMeasureFlags flags = 0;
   gint i;
 


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