From: David Soria Parra <sn_@gmx.net>
To: git@vger.kernel.org
Cc: David Soria Parra <dsp@php.net>
Subject: [PATCH] Fix compiler warning by properly initialize failed_errno
Date: Sun, 2 Aug 2009 21:34:35 +0200 [thread overview]
Message-ID: <1249241675-77329-1-git-send-email-sn_@gmx.net> (raw)
From: David Soria Parra <dsp@php.net>
Initilize failed_error in start_command to avoid compiler warnings
Signed-off-by: David Soria Parra <dsp@php.net>
---
run-command.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/run-command.c b/run-command.c
index dc09433..510349b 100644
--- a/run-command.c
+++ b/run-command.c
@@ -19,7 +19,7 @@ int start_command(struct child_process *cmd)
{
int need_in, need_out, need_err;
int fdin[2], fdout[2], fderr[2];
- int failed_errno;
+ int failed_errno = 0;
/*
* In case of errors we must keep the promise to close FDs
--
1.6.4.212.g4719.dirty
next reply other threads:[~2009-08-02 19:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-02 19:34 David Soria Parra [this message]
2009-08-04 6:07 ` [PATCH] Fix compiler warning by properly initialize failed_errno Junio C Hamano
2009-08-04 9:27 ` sn_
2009-08-04 22:22 ` Junio C Hamano
2009-08-04 18:51 ` Johannes Sixt
2009-08-04 19:09 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1249241675-77329-1-git-send-email-sn_@gmx.net \
--to=sn_@gmx.net \
--cc=dsp@php.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).