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:
Tay Ray Chuan 2009-11-24 10:31:30 +08:00 committed by Junio C Hamano
parent 4fa80cf0e0
commit 483106089a

View File

@ -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;