diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-09-11 10:33:27 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-11 10:33:27 -0700 |
commit | 825fd93767510895a98ad7f12e3c1af3e40e367b (patch) | |
tree | ea3b4beac8dae69e2b45c9bfb8ce2cc21f462499 /remote-curl.c | |
parent | Merge branch 'jk/contrib-subtree-make-all' (diff) | |
parent | run-command: inline prepare_run_command_v_opt() (diff) | |
download | tgif-825fd93767510895a98ad7f12e3c1af3e40e367b.tar.xz |
Merge branch 'rs/child-process-init'
Code clean-up.
* rs/child-process-init:
run-command: inline prepare_run_command_v_opt()
run-command: call run_command_v_opt_cd_env() instead of duplicating it
run-command: introduce child_process_init()
run-command: introduce CHILD_PROCESS_INIT
Diffstat (limited to 'remote-curl.c')
-rw-r--r-- | remote-curl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/remote-curl.c b/remote-curl.c index 0fcf2ce5ff..017ddd9284 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -623,10 +623,9 @@ static int rpc_service(struct rpc_state *rpc, struct discovery *heads) const char *svc = rpc->service_name; struct strbuf buf = STRBUF_INIT; struct strbuf *preamble = rpc->stdin_preamble; - struct child_process client; + struct child_process client = CHILD_PROCESS_INIT; int err = 0; - memset(&client, 0, sizeof(client)); client.in = -1; client.out = -1; client.git_cmd = 1; |