From b5092ec0d88fb737e703809775a4fcfc4ca5b3c6 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Tue, 30 Apr 2019 08:15:08 +0000 Subject: [PATCH] test: fix compound initialization --- test/date/mutt_date_parse_date.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/date/mutt_date_parse_date.c b/test/date/mutt_date_parse_date.c index a5777d717..401e83666 100644 --- a/test/date/mutt_date_parse_date.c +++ b/test/date/mutt_date_parse_date.c @@ -30,7 +30,8 @@ void test_mutt_date_parse_date(void) // time_t mutt_date_parse_date(const char *s, struct Tz *tz_out); { - struct Tz tz = { 0 }; + struct Tz tz; + memset(&tz, 0, sizeof(tz)); TEST_CHECK(mutt_date_parse_date(NULL, &tz) != 0); } -- 2.40.0