summaryrefslogtreecommitdiff
path: root/wince
diff options
context:
space:
mode:
authoruema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-30 23:05:39 +0000
committeruema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-30 23:05:39 +0000
commit3ea7376bca04278433e14894f00b64b67187494b (patch)
tree8beadd6b38b780b56e0ea73b2db6e2c60a039d93 /wince
parent77d7066abeea8bf80c422479775a34057ddf4b82 (diff)
*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
Diffstat (limited to 'wince')
-rw-r--r--wince/time_wce.c2
1 files changed, 2 insertions, 0 deletions
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 );