From b64705e2411472fde510364e0c47d29d915d083b Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Tue, 20 Feb 2024 16:45:01 -0500 Subject: [PATCH] Use designated initializer in another spot. --- sched.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sched.c b/sched.c index c5c1c18..3e429e5 100644 --- a/sched.c +++ b/sched.c @@ -101,10 +101,7 @@ static bool day_sieve_day_ok(struct day_sieve *self, int i) { return self->filte static bool day_sieve_build(struct day_sieve *self, struct Job const *entry, int year) { - struct tm t = {0}; - t.tm_mday = 1; - t.tm_year = year; - t.tm_isdst = -1; + struct tm t = { .tm_mday = 1, .tm_year = year, .tm_isdst = -1 }; *self = (struct day_sieve){ .start_ts = mktime(&t) }; if (self->start_ts == -1) return false;