aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-28 15:09:09 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-28 15:09:09 +0100
commit0bd376639f30e2e2f623887afccb6facdeb46043 (patch)
tree42b95d9314ace0e73ab792a3d412df82c421e821
parentfix dup_at_least_3: must duplicate at least once (diff)
downloadslibc-0bd376639f30e2e2f623887afccb6facdeb46043.tar.gz
slibc-0bd376639f30e2e2f623887afccb6facdeb46043.tar.bz2
slibc-0bd376639f30e2e2f623887afccb6facdeb46043.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
-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
{