diff --git a/src/syslogd.c b/src/syslogd.c index 055f9ab..2dc92ce 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -1174,10 +1174,11 @@ char *textpri(int pri) static void check_timestamp(struct buf_msg *buffer) { - struct logtime zero = { 0 }; + struct logtime zero; struct logtime now; struct timeval tv; + memset(&zero, 0, sizeof(zero)); if (memcmp(&buffer->timestamp, &zero, sizeof(zero))) return;