aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unistd/daemonise.c2
1 files changed, 1 insertions, 1 deletions
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
{