diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-11-19 23:54:48 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-11-19 23:54:48 +0000 |
commit | 6ff865746252efc93fda1f2cdc1e0a6990f01a4c (patch) | |
tree | 764a03cb62611dbdd8a959b3fc32fbef0c6c44c7 /time/mktime.c | |
parent | 43fa95836b580039ccb92c97cbbe52ac210936bf (diff) |
(__mktime_internal): Declare sec_requested even if
!LEAP_SECONDS_POSSIBLE, since it's needed at the end when checking
for time_t overflow.
Diffstat (limited to 'time/mktime.c')
-rw-r--r-- | time/mktime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/time/mktime.c b/time/mktime.c index 5012888967..1573cc79a9 100644 --- a/time/mktime.c +++ b/time/mktime.c @@ -225,10 +225,10 @@ __mktime_internal (tp, convert, offset) [mon_remainder + 12 * negative_mon_remainder]) + mday - 1); + int sec_requested = sec; #if LEAP_SECONDS_POSSIBLE /* Handle out-of-range seconds specially, since ydhms_tm_diff assumes every minute has 60 seconds. */ - int sec_requested = sec; if (sec < 0) sec = 0; if (59 < sec) |