qga: fix uninitialized value warning for win32
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
a1853dca74
commit
e853ea1cc6
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue