diff options
Diffstat (limited to 'credential.c')
-rw-r--r-- | credential.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/credential.c b/credential.c index 0f974f1987..b146ad8481 100644 --- a/credential.c +++ b/credential.c @@ -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; |