git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2] Fix compiler warning

From
David Soria Parra <sn_@gmx.net>
Date
Aug 4, 2009, 09:28 UTC
Message-ID
<1249378120-97998-1-git-send-email-sn_@gmx.net>
From: David Soria Parra <dsp@php.net>
Initilize failed_error in start_command to avoid compiler warning
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..f3e7abb 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 = failed_errno;
 
 	/*
 	 * In case of errors we must keep the promise to close FDs
-- 
1.6.4.212.g4719
Message 1 of 1 in “Fix compiler warning”
  1. Fix compiler warningDavid Soria Parra, Aug 4, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.