summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-21 14:54:52 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-21 14:54:52 -0500
commitaeb3bdae85bddab96c749dfc07ecf6d7e0b2fdf2 (patch)
tree5d5e3942e1d81ec3d3de8b1ca4d6bd3d4b305aba /gpsd.c
parentcff19bf788a09366df98f24b66c20aca8450bd99 (diff)
downloadgpsd-aeb3bdae85bddab96c749dfc07ecf6d7e0b2fdf2.tar.gz
More splint cleanup. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 0c7a7bc6..80a08cf9 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1541,7 +1541,7 @@ static void all_reports(struct gps_device_t *device, gps_mask_t changed)
//gpsd_report(&context.errout, LOG_PROG, "NTP: Not a new time\n");
} else if (!device->ship_to_ntpd) {
//gpsd_report(&context.errout, LOG_PROG, "NTP: No precision time report\n");
- } else {
+ } else if (device->shm_clock != NULL) {
/*@-compdef@*/
struct timedrift_t td;
ntpshm_latch(device, &td);