Kaynağa Gözat

qga: fix uninitialized value warning for win32

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Michael Roth 9 yıl önce
ebeveyn
işleme
e853ea1cc6
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 ga_channel_write_all(GAChannel *c, const char *buf, size_t size)
 {
 {
     GIOStatus status = G_IO_STATUS_NORMAL;
     GIOStatus status = G_IO_STATUS_NORMAL;
-    size_t count;
+    size_t count = 0;
 
 
     while (size) {
     while (size) {
         status = ga_channel_write(c, buf, size, &count);
         status = ga_channel_write(c, buf, size, &count);