diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-01-24 07:09:35 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-24 07:09:35 -0500 |
commit | 847485d519e9596847f6d34a6a7cbd073f72f5d4 (patch) | |
tree | db17cf342cd7116cb9ec502a198f82b98f5525a5 | |
parent | e69530bf805d34ef09f04dc503ef6765732bec8a (diff) | |
download | gpsd-847485d519e9596847f6d34a6a7cbd073f72f5d4.tar.gz |
Prevent uninitialized-field lossage in the Zodiac driver.
-rw-r--r-- | driver_zodiac.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c index 0d066d1f..2a0e367e 100644 --- a/driver_zodiac.c +++ b/driver_zodiac.c @@ -165,9 +165,7 @@ static gps_mask_t handle1000(struct gps_device_t *session) unpacked_date.tm_hour = (int)getzword(22); unpacked_date.tm_min = (int)getzword(23); unpacked_date.tm_sec = (int)getzword(24); -#ifdef S_SPLINT_S unpacked_date.tm_isdst = 0; -#endif /* S_SPLINT_S */ subseconds = (int)getzlong(25) / 1e9; /*@ -compdef */ session->newdata.time = (timestamp_t)mkgmtime(&unpacked_date) + subseconds; |