(__mktime_internal): Declare sec_requested even if
authordrepper <drepper>
Thu, 11 Sep 1997 12:07:25 +0000 (12:07 +0000)
committerdrepper <drepper>
Thu, 11 Sep 1997 12:07:25 +0000 (12:07 +0000)
!LEAP_SECONDS_POSSIBLE, since it's needed at the end when checking for
time_t overflow.

time/mktime.c

index 5012888..1573cc7 100644 (file)
@@ -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)