From 3ea7376bca04278433e14894f00b64b67187494b Mon Sep 17 00:00:00 2001 From: uema2 Date: Tue, 30 Sep 2003 23:05:39 +0000 Subject: [PATCH] *wince/time_wce.c (time): add zero check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ wince/time_wce.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 532be5ab10..e3a8fb786a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Oct 01 08:02:52 2003 Takaaki Uematsu + + *wince/time_wce.c (time): add zero check. + Tue Sep 30 11:29:23 2003 Tanaka Akira * process.c (pst_inspect): describe stopped process "stopped". diff --git a/wince/time_wce.c b/wince/time_wce.c index 81afe5152f..ed9b3386bd 100644 --- a/wince/time_wce.c +++ b/wince/time_wce.c @@ -142,6 +142,8 @@ time_t time( time_t *timer ) SYSTEMTIME s; FILETIME f; + if( timer==NULL ) return 0; + GetSystemTime( &s ); SystemTimeToFileTime( &s, &f );