aboutsummaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2009-11-24 10:31:30 +0800
committerJunio C Hamano <gitster@pobox.com>2009-11-23 21:25:55 -0800
commit483106089aea7ad856b7f940e20db254b08bad81 (patch)
treee6b1a86c0966913dfbf7d2c32b33897abd271a1f /remote-curl.c
parent4fa80cf0e07daa72361cd193fd88927be710c2e6 (diff)
downloadgit-483106089aea7ad856b7f940e20db254b08bad81.tar.gz
git-483106089aea7ad856b7f940e20db254b08bad81.tar.xz
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>
Diffstat (limited to 'remote-curl.c')
-rw-r--r--remote-curl.c2
1 files changed, 1 insertions, 1 deletions
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;