summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/stdtime/strptime.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c
index 55c9960..e942e04 100644
--- a/lib/libc/stdtime/strptime.c
+++ b/lib/libc/stdtime/strptime.c
@@ -676,8 +676,6 @@ strptime_l(const char * __restrict buf, const char * __restrict fmt,
if (ret && gmt) {
time_t t = timegm(tm);
- if (t == -1)
- return (NULL);
localtime_r(&t, tm);
}
OpenPOWER on IntegriCloud