Init total_written in open.

This commit is contained in:
Michael Jumper 2011-03-14 11:00:48 -07:00
parent 3e90251cb8
commit 8569803cd5

View File

@ -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 */