From 8569803cd55fbef2756fbaf29670a008d86e6186 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 14 Mar 2011 11:00:48 -0700 Subject: [PATCH] Init total_written in open. --- libguac/src/guacio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libguac/src/guacio.c b/libguac/src/guacio.c index 902c84fb..e984c4fc 100644 --- a/libguac/src/guacio.c +++ b/libguac/src/guacio.c @@ -64,6 +64,7 @@ GUACIO* guac_open(int fd) { GUACIO* io = malloc(sizeof(GUACIO)); io->ready = 0; io->written = 0; + io->total_written = 0; io->fd = fd; /* Allocate instruction buffer */