diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-08-12 09:47:36 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-12 09:47:36 -0700 |
commit | 18f3ce8841b1cf7a3bee8e8da75fd7520060a4c0 (patch) | |
tree | 987dec480980f53bf1ddec5ecb4be3d32db6eb6e /builtin/submodule--helper.c | |
parent | bb876eb3717b5f6e2f07d5e216e2db8e2d643707 (diff) | |
parent | 542aa25d9748c381a27074fb08614d4cb4713984 (diff) | |
download | git-18f3ce8841b1cf7a3bee8e8da75fd7520060a4c0.tar.gz |
Merge branch 'rs/child-process-init'
A small code clean-up.
* rs/child-process-init:
use CHILD_PROCESS_INIT to initialize automatic variables
Diffstat (limited to 'builtin/submodule--helper.c')
-rw-r--r-- | builtin/submodule--helper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 343d25b758..e79790f0bd 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -444,8 +444,7 @@ static int module_name(int argc, const char **argv, const char *prefix) static int clone_submodule(const char *path, const char *gitdir, const char *url, const char *depth, const char *reference, int quiet) { - struct child_process cp; - child_process_init(&cp); + struct child_process cp = CHILD_PROCESS_INIT; argv_array_push(&cp.args, "clone"); argv_array_push(&cp.args, "--no-checkout"); |