diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-06-13 07:16:38 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-06-13 07:16:38 +0000 |
commit | f152fd19501197897571a44517ec7ca6e354ec6a (patch) | |
tree | edff2c7820076c0137cb1039f0a600014f5eaade /sys/arch/socppc | |
parent | 81bd08efeb9483b8acadf3024e7f353af2acdf44 (diff) |
When investigating an uninitialised variable in the armv7 resettodr()
miod pointed out that time_second should be compared to 1 not 0 in the
md resettodr() functions as it is initialised to 1.
ok miod@ deraadt@
Diffstat (limited to 'sys/arch/socppc')
-rw-r--r-- | sys/arch/socppc/socppc/clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/socppc/socppc/clock.c b/sys/arch/socppc/socppc/clock.c index c1ebef574ef..58ddf4ff8a3 100644 --- a/sys/arch/socppc/socppc/clock.c +++ b/sys/arch/socppc/socppc/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.12 2014/11/11 21:02:06 mpi Exp $ */ +/* $OpenBSD: clock.c,v 1.13 2015/06/13 07:16:37 jsg Exp $ */ /* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */ /* @@ -148,7 +148,7 @@ resettodr(void) { struct timeval tv; - if (time_second == 0) + if (time_second == 1) return; microtime(&tv); |