summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4fa80cf)
raw | patch | inline | side by side (parent: 4fa80cf)
author | Tay Ray Chuan <rctay89@gmail.com> | |
Tue, 24 Nov 2009 02:31:30 +0000 (10:31 +0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 24 Nov 2009 05:25:55 +0000 (21:25 -0800) |
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>
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>
remote-curl.c | patch | blob | history |
diff --git a/remote-curl.c b/remote-curl.c
index 69eaf58dfe2be1a73b2c94ee9e33a678f1fb4f3e..a331bae6c8e95042dc2d136fdc1ef6b3d4463c53 100644 (file)
--- a/remote-curl.c
+++ b/remote-curl.c
rpc->len = avail;
}
- if (max < avail);
+ if (max < avail)
avail = max;
memcpy(ptr, rpc->buf + rpc->pos, avail);
rpc->pos += avail;