@matheusbsbs / matheus-bagliano / commits / 5a7a3671b7
Fork 0

run-command.c: squelch a "use before assignment" warning

i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490) compiler (and probably others) mistakenly thinks variable failed_errno is used before assigned. Work it around by giving it a fake initialization. Signed-off-by: David Soria Parra <dsp@php.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

David Soria Parra committed Aug 4, 2009 at 11:28 UTC 5a7a3671b74c043216549b94a718da04cc3ffcd6
1 file changed +1 -1
run-command.c
+1 -1
@@ -19,7 +19,7 @@ int start_command(struct child_process *cmd)
19 {
20 int need_in, need_out, need_err;
21 int fdin[2], fdout[2], fderr[2];
22 - int failed_errno;
22 + int failed_errno = failed_errno;
23
24 /*
25 * In case of errors we must keep the promise to close FDs