From: Tay Ray Chuan Date: Tue, 24 Nov 2009 01:55:08 GMT Subject: [PATCH v2 2/2] remote-curl.c: fix rpc_out() Message-ID: <20091124095508.d6312ab0.rctay89@gmail.com> In-Reply-To: <20091124095021.93942a56.rctay89@gmail.com> Remove the extraneous semicolon (';') at the end of the if statement, that prevented code in its block from executing. This fixes pushing to a smart http backend with chunked encoding. Signed-off-by: Tay Ray Chuan --- remote-curl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/remote-curl.c b/remote-curl.c index 69eaf58..a331bae 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; -- 1.6.4.4