diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-22 15:09:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-22 15:09:50 +0000 |
commit | 9f66faa3749e3919726828199b25a9b3b6b30e96 (patch) | |
tree | d8ec96fbd0a0dc3d26d967ff9d7049a0665ab84c /time.c | |
parent | a60b9f919054c7e72a1574a93d1925351ff40ca8 (diff) | |
download | ruby-9f66faa3749e3919726828199b25a9b3b6b30e96.tar.gz |
* time.c (init_leap_second_info): checks the result of gmtime to
suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -522,6 +522,7 @@ init_leap_second_info() now = time(NULL); gmtime(&now); tm = gmtime_with_leapsecond(&now, &result); + if (!tm) return; this_year = tm->tm_year; max = ~(time_t)0; |