]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(__mktime_internal): Declare sec_requested even if
authorUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 23:54:48 +0000 (23:54 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 23:54:48 +0000 (23:54 +0000)
!LEAP_SECONDS_POSSIBLE, since it's needed at the end when checking
for time_t overflow.

time/mktime.c

index 501288896793625bd7c0bf86c55b31f6d7f86360..1573cc79a91b3a0a71adb26b36fcb241418b3206 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)