summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-12 14:37:00 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-12 14:37:00 -0400
commit1c035cfa54bb65929642f70260dc23c8fee847e3 (patch)
treecb4f060add417804b6e74f17ff051c4ff18dfef5 /ntpshm.c
parent1992d827fbd3aefc124ea46c0f7e87571508d408 (diff)
downloadgpsd-1c035cfa54bb65929642f70260dc23c8fee847e3.tar.gz
More Coverity suppressions.
Also, remove our custom scan script, I'm going to publish a more polished version.
Diffstat (limited to 'ntpshm.c')
-rw-r--r--ntpshm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ntpshm.c b/ntpshm.c
index bb41e348..3d08e128 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -912,7 +912,7 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
}
gpsd_report(LOG_PROG, "PPS gpsd_ppsmonitor exited???\n");
/* pacify Coverity - falling through here is theoretically a handle leak */
- if (chronyfd)
+ if (chronyfd != -1)
(void)close(chronyfd);
return NULL;
}