]> Git Repo - qemu.git/commitdiff
qga: fix uninitialized value warning for win32
authorMichael Roth <[email protected]>
Sat, 17 Oct 2015 15:31:16 +0000 (10:31 -0500)
committerMichael Roth <[email protected]>
Mon, 19 Oct 2015 23:31:54 +0000 (18:31 -0500)
Signed-off-by: Michael Roth <[email protected]>
qga/channel-win32.c

index 215b15a7f5ad067ff7bf22970d4ad86efb251f18..0452b9f75eb0cc859d6c34e35ff983a799eed801 100644 (file)
@@ -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);
This page took 0.025722 seconds and 4 git commands to generate.