diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-09-23 04:33:08 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-09-23 04:33:08 +0000 |
commit | 643e5e965f40ecdc6a2cc114d17a25427df750af (patch) | |
tree | b9f8c52f9504872b0971f7bc1405ed4f56eead60 /sys/arch/mips64 | |
parent | dc1b6c06100959c38d166ff07b7a75ac5834dcc8 (diff) |
Fix uninitialized variable if the TOD clock value is horribly wrong.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/clock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/mips64/mips64/clock.c b/sys/arch/mips64/mips64/clock.c index 9873d17b70a..80ffa6166f3 100644 --- a/sys/arch/mips64/mips64/clock.c +++ b/sys/arch/mips64/mips64/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.20 2008/04/07 22:36:26 miod Exp $ */ +/* $OpenBSD: clock.c,v 1.21 2008/09/23 04:33:07 miod Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -365,6 +365,7 @@ resettodr() c.dow = (t2 + 5) % 7 + 1; /* 1/1/1970 was thursday */ /* compute the year */ + t = 0; t2 = time_second / SECDAY; c.year = 69; while (t2 >= 0) { /* whittle off years */ |