Avoid printing f->f_lasttime and/or f->f_prevhost if they are empty.
authormillert <millert@openbsd.org>
Fri, 1 Jul 2016 15:47:15 +0000 (15:47 +0000)
committermillert <millert@openbsd.org>
Fri, 1 Jul 2016 15:47:15 +0000 (15:47 +0000)
commit13a8eb257b4c0056959924e16a3d8f45ccdffac2
tree233117b7c822a1d4d5ade8832c0ad10b0e4a2188
parent6e3437808469f16f6d3f6a1ed06003b69f820b70
Avoid printing f->f_lasttime and/or f->f_prevhost if they are empty.
This fixes a long-standing issue where syslogd would print 15 NUL
bytes followed by two blank spaces before the log message for
warnings generated while parsing syslog.conf.  OK bluhm@
usr.sbin/syslogd/syslogd.c