diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index a519a9e7d641..4b848c4e20a4 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/isa/clock.c @@ -703,7 +703,8 @@ inittodr(time_t base) #else ct.year += 2000; #endif - /* Should we set dow = -1 because some clocks don't set it correctly? */ + /* Set dow = -1 because some clocks don't set it correctly. */ + ct.dow = -1; if (clock_ct_to_ts(&ct, &ts)) { printf("Invalid time in clock: check and reset the date!\n"); return; diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index a519a9e7d641..4b848c4e20a4 100644 --- a/sys/isa/atrtc.c +++ b/sys/isa/atrtc.c @@ -703,7 +703,8 @@ inittodr(time_t base) #else ct.year += 2000; #endif - /* Should we set dow = -1 because some clocks don't set it correctly? */ + /* Set dow = -1 because some clocks don't set it correctly. */ + ct.dow = -1; if (clock_ct_to_ts(&ct, &ts)) { printf("Invalid time in clock: check and reset the date!\n"); return;