summaryrefslogtreecommitdiff
path: root/driver_oncore.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-10 17:20:15 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-10 17:20:15 -0400
commit36ff885bc7d7d906ce63f29dd04e9364a37590da (patch)
tree38c9ca68d90915c592f719c31c08a21233412b8a /driver_oncore.c
parentdeaa6ea77605d4248ad4b3533fb2d93923125adc (diff)
downloadgpsd-36ff885bc7d7d906ce63f29dd04e9364a37590da.tar.gz
Coverity complains because the isdst field isn't initialized.
Probably not an actual defect given the semantics of timegm(3), but let's be safe.
Diffstat (limited to 'driver_oncore.c')
-rw-r--r--driver_oncore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_oncore.c b/driver_oncore.c
index 6ccb0738..b020c7f6 100644
--- a/driver_oncore.c
+++ b/driver_oncore.c
@@ -109,6 +109,7 @@ oncore_msg_navsol(struct gps_device_t *session, unsigned char *buf,
unpacked_date.tm_hour = (int)getub(buf, 8);
unpacked_date.tm_min = (int)getub(buf, 9);
unpacked_date.tm_sec = (int)getub(buf, 10);
+ unpacked_date.tm_isdst = 0;
nsec = (uint) getbeu32(buf, 11);
/*@ -unrecog */