mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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:
committed by
Junio C Hamano
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;
|
||||
|
||||
Reference in New Issue
Block a user