summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-05-29 05:05:40 +0000
committerRichard M. Stallman <rms@gnu.org>1993-05-29 05:05:40 +0000
commit4ca7594fbd640346f6eed289470494135694328d (patch)
tree96c4a67eb6e3ff76de129fc7c923660607f6f65d /src
parent334c4f2ffd53c886ef40c5b768fe0e24b9579fd7 (diff)
downloademacs-4ca7594fbd640346f6eed289470494135694328d.tar.gz
(gettimeofday): Don't store in *tzp if tzp is 0.
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 15a0da97190..f9390c3c239 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2704,7 +2704,8 @@ gettimeofday (tp, tzp)
tp->tv_sec = time ((long *)0);
tp->tv_usec = 0;
- tzp->tz_minuteswest = -1;
+ if (tzp != 0)
+ tzp->tz_minuteswest = -1;
}
#endif