Fix GCC init warning on ArmV5, use memset() instead

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2021-01-14 15:21:11 +01:00
parent af0da3cf1d
commit 680c622efb

View File

@ -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;