aboutsummaryrefslogtreecommitdiff
path: root/contrib/tzcode
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-12-16 02:15:38 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-12-21 18:01:24 +0000
commita2c51da6581dbc38c60c9fc41d1b624ff2c8de97 (patch)
tree17eaea16a8535aec3a133e3f33930c9516780423 /contrib/tzcode
parent6bdbfa491f033da7cc8705b19931e0defc619776 (diff)
Diffstat (limited to 'contrib/tzcode')
-rw-r--r--contrib/tzcode/stdtime/localtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tzcode/stdtime/localtime.c b/contrib/tzcode/stdtime/localtime.c
index 9de1b26d74a0..6a0e0ce4fe4b 100644
--- a/contrib/tzcode/stdtime/localtime.c
+++ b/contrib/tzcode/stdtime/localtime.c
@@ -1278,7 +1278,7 @@ recheck_tzdata()
* We want to recheck the timezone file every 61 sec.
*/
error = clock_gettime(CLOCK_MONOTONIC, &now);
- if (error <= 0) {
+ if (error < 0) {
/* XXX: Can we somehow report this? */
return 0;
}