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;