summaryrefslogtreecommitdiff
path: root/time/unix
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-05-31 20:56:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-05-31 20:56:05 +0000
commita6c43c64d9419dfa888b1c478e658e3e20a4af11 (patch)
treec44233797692f5a1878dfd1d614e5674a3c0e0a6 /time/unix
parentf7eb533f85d0941dbf6edb3081f065e4c010b8cc (diff)
Notes
Diffstat (limited to 'time/unix')
-rw-r--r--time/unix/time.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/time/unix/time.c b/time/unix/time.c
index 7f09581927699..dfa45e690c629 100644
--- a/time/unix/time.c
+++ b/time/unix/time.c
@@ -142,9 +142,6 @@ APR_DECLARE(apr_status_t) apr_time_exp_get(apr_time_t *t, apr_time_exp_t *xt)
static const int dayoffset[12] =
{306, 337, 0, 31, 61, 92, 122, 153, 184, 214, 245, 275};
- if (xt->tm_mon < 0 || xt->tm_mon >= 12)
- return APR_EBADDATE;
-
/* shift new year to 1st March in order to make leap year calc easy */
if (xt->tm_mon < 2)