diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-11 14:26:57 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-11 14:26:57 +0000 |
commit | 8c7786bf5831918da34d6614755ac303d8b21925 (patch) | |
tree | 97fc724c4b885d56a7c2e8488baae129cf9ee6b3 | |
parent | 78e3dfd95bd56ed4f1a81738e9c83899fd7c21b7 (diff) | |
download | ruby-8c7786bf5831918da34d6614755ac303d8b21925.tar.gz |
* time.c (init_leap_second_info): check the result of
gmtime_with_leapsecond.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | time.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Jun 11 23:21:35 2010 Tanaka Akira <akr@fsij.org> + + * time.c (init_leap_second_info): check the result of + gmtime_with_leapsecond. + Fri Jun 11 23:04:59 2010 NARUSE, Yui <naruse@ruby-lang.org> * ext/openssl/ossl_ssl.c (ossl_sslctx_get_ciphers): @@ -1280,7 +1280,8 @@ init_leap_second_info() 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; |