diff --git a/src/syslog.c b/src/syslog.c index 1510258..489d891 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -272,8 +272,7 @@ vsyslogp_r(int pri, struct syslog_data *data, const char *msgid, if (!(data->log_stat & LOG_NLOG)) { prlen = snprintf(p, tbuf_left, "<%d>", pri); DEC(); - } else - prlen = 0; + } prlen = strftime(dbuf, sizeof(dbuf), "%b %d %T ", &tmnow);