From e853ea1cc68716c3d9c22d04578020c6dd743306 Mon Sep 17 00:00:00 2001 From: Michael Roth Date: Sat, 17 Oct 2015 10:31:16 -0500 Subject: [PATCH] qga: fix uninitialized value warning for win32 Signed-off-by: Michael Roth --- qga/channel-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/channel-win32.c b/qga/channel-win32.c index 215b15a..0452b9f 100644 --- a/qga/channel-win32.c +++ b/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); -- 2.7.4