remote-curl.c: fix rpc_out()
Remove the extraneous semicolon (';') at the end of the if statement that allowed the code in its block to execute regardless of the condition. This fixes pushing to a smart http backend with chunked encoding. Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Tay Ray Chuan committed
Nov 24, 2009 at 10:31 UTC
483106089aea7ad856b7f940e20db254b08bad81
1 file changed
+1
-1
remote-curl.c
+1
-1
@@ -307,7 +307,7 @@ static size_t rpc_out(void *ptr, size_t eltsize,
307
rpc->len = avail;
308
}
309
310
- if (max < avail);
310
+ if (max < avail)
311
avail = max;
312
memcpy(ptr, rpc->buf + rpc->pos, avail);
313
rpc->pos += avail;