Merge branch 'js/regexec-buf' into maint
[gitweb.git] / builtin / submodule--helper.c
index 343d25b75844bee78a2a0acd78d4d32dfbaa0d9e..e79790f0bdc9f19cb9d9773d1a9bdb10044bbb8d 100644 (file)
@@ -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");