diff options
Diffstat (limited to 'sysdeps/mach/gettimeofday.c')
-rw-r--r-- | sysdeps/mach/gettimeofday.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/gettimeofday.c b/sysdeps/mach/gettimeofday.c index 8d0dfbb7dc..f8c9b7ce3f 100644 --- a/sysdeps/mach/gettimeofday.c +++ b/sysdeps/mach/gettimeofday.c @@ -28,8 +28,8 @@ __gettimeofday (struct timeval *tv, struct timezone *tz) { kern_return_t err; - if (tz != NULL) - *tz = (struct timezone){0, 0}; /* XXX */ + if (tz) + memset (tz, 0, sizeof (struct timezone)); if (err = __host_get_time (__mach_host_self (), (time_value_t *) tv)) { |