changeset 3239:2e4882a32671

(gettimeofday): Don't store in *tzp if tzp is 0.
author Richard M. Stallman <rms@gnu.org>
date Sat, 29 May 1993 05:05:40 +0000
parents 0f0d9e9c33f2
children f09230e68f20
files src/sysdep.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Sat May 29 05:02:18 1993 +0000
+++ b/src/sysdep.c	Sat May 29 05:05:40 1993 +0000
@@ -2704,7 +2704,8 @@
 
   tp->tv_sec = time ((long *)0);    
   tp->tv_usec = 0;
-  tzp->tz_minuteswest = -1;
+  if (tzp != 0)
+    tzp->tz_minuteswest = -1;
 }
  
 #endif