]> granicus.if.org Git - neomutt/commitdiff
test: fix compound initialization
authorPietro Cerutti <gahr@gahr.ch>
Tue, 30 Apr 2019 08:15:08 +0000 (08:15 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 30 Apr 2019 10:22:04 +0000 (11:22 +0100)
test/date/mutt_date_parse_date.c

index a5777d7171992016aa7aaa041aee8e0d5ac3f468..401e83666a4353cffc8476bf48949f378427a3e7 100644 (file)
@@ -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);
   }