Skip to content

Commit 4831060

Browse files
rctaygitster
authored andcommitted
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>
1 parent 4fa80cf commit 4831060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remote-curl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ static size_t rpc_out(void *ptr, size_t eltsize,
307307
rpc->len = avail;
308308
}
309309

310-
if (max < avail);
310+
if (max < avail)
311311
avail = max;
312312
memcpy(ptr, rpc->buf + rpc->pos, avail);
313313
rpc->pos += avail;

0 commit comments

Comments
 (0)