From 0bd376639f30e2e2f623887afccb6facdeb46043 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 28 Dec 2015 15:09:09 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/unistd/daemonise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/unistd/daemonise.c b/src/unistd/daemonise.c index 2936e31..886c30d 100644 --- a/src/unistd/daemonise.c +++ b/src/unistd/daemonise.c @@ -55,7 +55,7 @@ static char* __pidfile = NULL; static int dup_at_least_3(int old) { int intermediary[] = { -1, -1, -1 }; - int i, saved_errno; + int i = 0, saved_errno; do { -- cgit v1.2.3-70-g09d2