From: Tay Ray Chuan Date: Tue, 24 Nov 2009 02:31:30 +0000 (+0800) Subject: remote-curl.c: fix rpc_out() X-Git-Tag: v1.6.6-rc1~42 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=483106089aea7ad856b7f940e20db254b08bad81;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/remote-curl.c b/remote-curl.c index 69eaf58df..a331bae6c 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -307,7 +307,7 @@ static size_t rpc_out(void *ptr, size_t eltsize, rpc->len = avail; } - if (max < avail); + if (max < avail) avail = max; memcpy(ptr, rpc->buf + rpc->pos, avail); rpc->pos += avail;