ruby-changes:12540
From: nobu <ko1@a...>
Date: Thu, 23 Jul 2009 00:10:08 +0900 (JST)
Subject: [ruby-changes:12540] Ruby:r24247 (trunk): * time.c (init_leap_second_info): checks the result of gmtime to
nobu 2009-07-23 00:09:50 +0900 (Thu, 23 Jul 2009) New Revision: 24247 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24247 Log: * time.c (init_leap_second_info): checks the result of gmtime to suppress warnings. Modified files: trunk/ChangeLog trunk/time.c Index: time.c =================================================================== --- time.c (revision 24246) +++ time.c (revision 24247) @@ -522,6 +522,7 @@ now = time(NULL); gmtime(&now); tm = gmtime_with_leapsecond(&now, &result); + if (!tm) return; this_year = tm->tm_year; max = ~(time_t)0; Index: ChangeLog =================================================================== --- ChangeLog (revision 24246) +++ ChangeLog (revision 24247) @@ -1,3 +1,8 @@ +Thu Jul 23 00:10:02 2009 Nobuyoshi Nakada <nobu@r...> + + * time.c (init_leap_second_info): checks the result of gmtime to + suppress warnings. + Wed Jul 22 22:23:24 2009 Yusuke Endoh <mame@t...> * vm_core.h (struct rb_iseq_t): add a new field line_no. This field -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/