diff options
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index de817b2..363da3d 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
@@ -166,7 +166,7 @@ static int sendraw(p_buffer buf, const char *data, size_t count, size_t *sent) { | |||
166 | size_t total = 0; | 166 | size_t total = 0; |
167 | int err = IO_DONE; | 167 | int err = IO_DONE; |
168 | while (total < count && err == IO_DONE) { | 168 | while (total < count && err == IO_DONE) { |
169 | size_t done; | 169 | size_t done = 0; |
170 | size_t step = (count-total <= STEPSIZE)? count-total: STEPSIZE; | 170 | size_t step = (count-total <= STEPSIZE)? count-total: STEPSIZE; |
171 | err = io->send(io->ctx, data+total, step, &done, tm); | 171 | err = io->send(io->ctx, data+total, step, &done, tm); |
172 | total += done; | 172 | total += done; |