Browse Source

qga: fix uninitialized value warning for win32

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Michael Roth 9 years ago
parent
commit
e853ea1cc6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qga/channel-win32.c

+ 1 - 1
qga/channel-win32.c

@@ -269,7 +269,7 @@ static GIOStatus ga_channel_write(GAChannel *c, const char *buf, size_t size,
 GIOStatus ga_channel_write_all(GAChannel *c, const char *buf, size_t size)
 {
     GIOStatus status = G_IO_STATUS_NORMAL;
-    size_t count;
+    size_t count = 0;
 
     while (size) {
         status = ga_channel_write(c, buf, size, &count);