X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=remote-testsvn.c;h=48bf6eb93b361a736d96e701749c16bae8d169a8;hb=af07b20d515dce034d16062d9f6baa2e4b4bf7ae;hp=686e07d317bf157461f0ce680958a466675c80bc;hpb=e7867e80f00bf54634a2e15abd762ac615c5b791;p=thirdparty%2Fgit.git diff --git a/remote-testsvn.c b/remote-testsvn.c index 686e07d317..48bf6eb93b 100644 --- a/remote-testsvn.c +++ b/remote-testsvn.c @@ -175,7 +175,7 @@ static int cmd_import(const char *line) char *note_msg; unsigned char head_sha1[20]; unsigned int startrev; - struct child_process svndump_proc; + struct child_process svndump_proc = CHILD_PROCESS_INIT; const char *command = "svnrdump"; if (read_ref(private_ref, head_sha1)) @@ -200,7 +200,6 @@ static int cmd_import(const char *line) if(dumpin_fd < 0) die_errno("Couldn't open svn dump file %s.", url); } else { - memset(&svndump_proc, 0, sizeof(struct child_process)); svndump_proc.out = -1; argv_array_push(&svndump_proc.args, command); argv_array_push(&svndump_proc.args, "dump");