summaryrefslogtreecommitdiffstats
path: root/usr.sbin/daemon
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2007-03-09 09:40:23 +0000
committertrhodes <trhodes@FreeBSD.org>2007-03-09 09:40:23 +0000
commit55ca7cf75c0d019082a4e44c3ec32a732f907846 (patch)
treeb7acc56d2085cff4c8c2d3fb81a576bfe6af07b1 /usr.sbin/daemon
parent2ade3330192c7b864335eeb4f1c5b2d034432780 (diff)
downloadFreeBSD-src-55ca7cf75c0d019082a4e44c3ec32a732f907846.zip
FreeBSD-src-55ca7cf75c0d019082a4e44c3ec32a732f907846.tar.gz
Initialize *pfh to NULL to quiet a gcc warning, not part of my original
commit because it was not part of the new code.
Diffstat (limited to 'usr.sbin/daemon')
-rw-r--r--usr.sbin/daemon/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/daemon/daemon.c b/usr.sbin/daemon/daemon.c
index 1534011..43c6f8c 100644
--- a/usr.sbin/daemon/daemon.c
+++ b/usr.sbin/daemon/daemon.c
@@ -48,7 +48,7 @@ static void usage(void);
int
main(int argc, char *argv[])
{
- struct pidfh *pfh;
+ struct pidfh *pfh = NULL;
int ch, nochdir, noclose, errcode;
const char *pidfile, *user, *group;
pid_t otherpid;
OpenPOWER on IntegriCloud