ruby-changes:16311
From: akr <ko1@a...>
Date: Fri, 11 Jun 2010 23:28:42 +0900 (JST)
Subject: [ruby-changes:16311] Ruby:r28283 (trunk, ruby_1_9_2): * time.c (init_leap_second_info): check the result of
akr 2010-06-11 23:26:57 +0900 (Fri, 11 Jun 2010) New Revision: 28283 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28283 Log: * time.c (init_leap_second_info): check the result of gmtime_with_leapsecond. Modified files: branches/ruby_1_9_2/ChangeLog branches/ruby_1_9_2/time.c trunk/ChangeLog trunk/time.c Index: time.c =================================================================== --- time.c (revision 28282) +++ time.c (revision 28283) @@ -1280,7 +1280,8 @@ else known_leap_seconds_limit = now + (time_t)(366*86400); - gmtime_with_leapsecond(&known_leap_seconds_limit, &result); + if (!gmtime_with_leapsecond(&known_leap_seconds_limit, &result)) + return; vtm.year = LONG2NUM(result.tm_year + 1900); vtm.mon = result.tm_mon + 1; Index: ChangeLog =================================================================== --- ChangeLog (revision 28282) +++ ChangeLog (revision 28283) @@ -1,3 +1,8 @@ +Fri Jun 11 23:21:35 2010 Tanaka Akira <akr@f...> + + * time.c (init_leap_second_info): check the result of + gmtime_with_leapsecond. + Fri Jun 11 23:04:59 2010 NARUSE, Yui <naruse@r...> * ext/openssl/ossl_ssl.c (ossl_sslctx_get_ciphers): Index: ruby_1_9_2/time.c =================================================================== --- ruby_1_9_2/time.c (revision 28282) +++ ruby_1_9_2/time.c (revision 28283) @@ -1280,7 +1280,8 @@ else known_leap_seconds_limit = now + (time_t)(366*86400); - gmtime_with_leapsecond(&known_leap_seconds_limit, &result); + if (!gmtime_with_leapsecond(&known_leap_seconds_limit, &result)) + return; vtm.year = LONG2NUM(result.tm_year + 1900); vtm.mon = result.tm_mon + 1; Index: ruby_1_9_2/ChangeLog =================================================================== --- ruby_1_9_2/ChangeLog (revision 28282) +++ ruby_1_9_2/ChangeLog (revision 28283) @@ -1,3 +1,8 @@ +Fri Jun 11 23:21:35 2010 Tanaka Akira <akr@f...> + + * time.c (init_leap_second_info): check the result of + gmtime_with_leapsecond. + Fri Jun 11 22:39:50 2010 Yusuke Endoh <mame@t...> * lib/rubygems/install_update_options.rb -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/