remote-curl: avoid using the comma operator unnecessarily
The comma operator is a somewhat obscure C feature that is often used by mistake and can even cause unintentional code flow. Better use a semicolon instead. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Acked-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>main
parent
683c54c999
commit
f569065fc4
|
@ -1239,7 +1239,7 @@ static int fetch_git(struct discovery *heads,
|
|||
packet_buf_flush(&preamble);
|
||||
|
||||
memset(&rpc, 0, sizeof(rpc));
|
||||
rpc.service_name = "git-upload-pack",
|
||||
rpc.service_name = "git-upload-pack";
|
||||
rpc.gzip_request = 1;
|
||||
|
||||
err = rpc_service(&rpc, heads, args.v, &preamble, &rpc_result);
|
||||
|
@ -1401,7 +1401,7 @@ static int push_git(struct discovery *heads, int nr_spec, const char **specs)
|
|||
packet_buf_flush(&preamble);
|
||||
|
||||
memset(&rpc, 0, sizeof(rpc));
|
||||
rpc.service_name = "git-receive-pack",
|
||||
rpc.service_name = "git-receive-pack";
|
||||
|
||||
err = rpc_service(&rpc, heads, args.v, &preamble, &rpc_result);
|
||||
if (rpc_result.len)
|
||||
|
|
Loading…
Reference in New Issue