Merge branch 'maint'
[gitweb.git] / credential.c
index 0f974f1987b78fb506e044fd8180c2f24fb86703..b146ad8481b133892a542691c7e36f5e7974cfdc 100644 (file)
@@ -207,11 +207,10 @@ static int run_credential_helper(struct credential *c,
                                 const char *cmd,
                                 int want_output)
 {
-       struct child_process helper;
+       struct child_process helper = CHILD_PROCESS_INIT;
        const char *argv[] = { NULL, NULL };
        FILE *fp;
 
-       memset(&helper, 0, sizeof(helper));
        argv[0] = cmd;
        helper.argv = argv;
        helper.use_shell = 1;