2
0
Fork 0

Fix writing (unititialized var)

personal/stbuehler/wip
Stefan Bühler 2008-08-07 01:21:53 +02:00
parent 9760d73a24
commit 3041e2429d
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ network_status_t network_write(server *srv, connection *con, int fd, chunkqueue
char *block_data;
off_t block_len;
ssize_t r;
off_t len;
off_t len = 0;
chunkiter ci;
do {
@ -57,7 +57,7 @@ network_status_t network_write(server *srv, connection *con, int fd, chunkqueue
}
chunkqueue_skip(cq, r);
len += r;
} while (r == blocksize && len < max_write);
} while (r == block_len && len < max_write);
return NETWORK_STATUS_SUCCESS;
}