[glib] Fix compilation warning: Initialize the variable



commit ba0a6e1911ee581f1d651a7a05bab789c760ef3c
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Nov 16 00:29:39 2009 +0100

    Fix compilation warning: Initialize the variable

 gio/tests/unix-streams.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/unix-streams.c b/gio/tests/unix-streams.c
index 07c7b9f..50b2d8c 100644
--- a/gio/tests/unix-streams.c
+++ b/gio/tests/unix-streams.c
@@ -77,7 +77,7 @@ static gpointer
 reader_thread (gpointer user_data)
 {
   GInputStream *in;
-  gssize nread, total;
+  gssize nread = 0, total;
   GError *err = NULL;
   char buf[sizeof (DATA)];
 



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