summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/http_chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http_chunk.c b/src/http_chunk.c
index e973d6e..87af3e7 100644
--- a/src/http_chunk.c
+++ b/src/http_chunk.c
@@ -62,7 +62,7 @@ static int http_chunk_append_read_fd_range(server *srv, connection *con, buffer
offset = 0;
do {
rd = read(fd, b->ptr+offset, len-offset);
- } while ((rd > 0 && (offset += rd, len -= rd)) || errno == EINTR);
+ } while (rd > 0 ? (offset += rd, len -= rd) : errno == EINTR);
buffer_commit(b, offset);
if (con->response.send_chunked) {