aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYuri Pankov <yuripv@FreeBSD.org>2018-10-13 16:25:28 +0000
committerYuri Pankov <yuripv@FreeBSD.org>2018-10-13 16:25:28 +0000
commitcbc0062992a838851afb1bb6cc67f32a2517b83d (patch)
tree3308f8c4cbf304a14dd5c88b3aa58d80b5749737 /lib
parent84cf7c1df73c161d9e2fc752bd0d9959b0c31da2 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdtime/strptime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c
index 6214398f09e0..78cef6bf839e 100644
--- a/lib/libc/stdtime/strptime.c
+++ b/lib/libc/stdtime/strptime.c
@@ -291,7 +291,7 @@ label:
if (c == 'H' || c == 'k') {
if (i > 23)
return (NULL);
- } else if (i > 12)
+ } else if (i == 0 || i > 12)
return (NULL);
tm->tm_hour = i;