diff options
author | Michael Roth <mdroth@linux.vnet.ibm.com> | 2015-10-17 10:31:16 -0500 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2015-10-19 18:31:54 -0500 |
commit | e853ea1cc68716c3d9c22d04578020c6dd743306 (patch) | |
tree | e31523f403f063da2978028d4636d5df12bfc56f /qga | |
parent | a1853dca74362551ec1434b2e15acfcdd53caa99 (diff) | |
download | qemu-e853ea1cc68716c3d9c22d04578020c6dd743306.zip qemu-e853ea1cc68716c3d9c22d04578020c6dd743306.tar.gz qemu-e853ea1cc68716c3d9c22d04578020c6dd743306.tar.bz2 |
qga: fix uninitialized value warning for win32
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'qga')
-rw-r--r-- | qga/channel-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |