Fix compilation warning: Initialize the variable
authorJavier Jardón <jjardon@gnome.org>
Sun, 15 Nov 2009 23:29:39 +0000 (00:29 +0100)
committerJavier Jardón <jjardon@gnome.org>
Tue, 17 Nov 2009 19:44:16 +0000 (20:44 +0100)
gio/tests/unix-streams.c

index 07c7b9f..50b2d8c 100644 (file)
@@ -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)];