DORMANTno replies

[PATCH] Fix compiler warning by properly initialize failed_errno

From: David Soria Parra <hidden>
Date: 2016-06-15 22:47:08
Subsystem: the rest · Maintainer: Linus Torvalds

From: David Soria Parra <redacted>

Initilize failed_error in start_command to avoid compiler warnings

Signed-off-by: David Soria Parra <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help