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>
This commit is contained in:
parent
4fa80cf0e0
commit
483106089a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user