diff options
| author | Richard M. Stallman | 1993-05-29 05:05:40 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-29 05:05:40 +0000 |
| commit | 4ca7594fbd640346f6eed289470494135694328d (patch) | |
| tree | 96c4a67eb6e3ff76de129fc7c923660607f6f65d /src | |
| parent | 334c4f2ffd53c886ef40c5b768fe0e24b9579fd7 (diff) | |
| download | emacs-4ca7594fbd640346f6eed289470494135694328d.tar.gz emacs-4ca7594fbd640346f6eed289470494135694328d.zip | |
(gettimeofday): Don't store in *tzp if tzp is 0.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 3 |
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) | |||
| 2704 | 2704 | ||
| 2705 | tp->tv_sec = time ((long *)0); | 2705 | tp->tv_sec = time ((long *)0); |
| 2706 | tp->tv_usec = 0; | 2706 | tp->tv_usec = 0; |
| 2707 | tzp->tz_minuteswest = -1; | 2707 | if (tzp != 0) |
| 2708 | tzp->tz_minuteswest = -1; | ||
| 2708 | } | 2709 | } |
| 2709 | 2710 | ||
| 2710 | #endif | 2711 | #endif |