summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2002-01-09 17:36:53 +0000
committerdeischen <deischen@FreeBSD.org>2002-01-09 17:36:53 +0000
commit0e9e967bc32416b9942f75493a02cf5beda68d20 (patch)
treeaf9cf13dc42436ad1a26070504ded9adb6236d0a /usr.sbin/syslogd
parent5cd9e383f87d706ea9c570ebd60aa8ef1fd06ad5 (diff)
downloadFreeBSD-src-0e9e967bc32416b9942f75493a02cf5beda68d20.zip
FreeBSD-src-0e9e967bc32416b9942f75493a02cf5beda68d20.tar.gz
Initialze a stack variable with NULL to unbreak buildworld with -Wall.
I don't know about anyone else, but the compiler was always aborting on this stupid warning, and has been doing so for weeks.
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r--usr.sbin/syslogd/syslogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index 9a534e3..bc651fc 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -921,7 +921,7 @@ fprintlog(f, flags, msg)
struct iovec *v;
struct addrinfo *r;
int i, l, lsent = 0;
- char line[MAXLINE + 1], repbuf[80], greetings[200], *wmsg;
+ char line[MAXLINE + 1], repbuf[80], greetings[200], *wmsg = NULL;
const char *msgret;
v = iov;
OpenPOWER on IntegriCloud