summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-27 05:57:05 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-27 05:57:05 -0400
commit0c6a0a8ed8e826057069ed8f3b6456f2c1980076 (patch)
tree818b4ff8223d386ee064314dd1222ce0490f7e0a /ntpshm.c
parentd590e2186b4cf573cd24cb9f0efaa5cb12c98b03 (diff)
downloadgpsd-0c6a0a8ed8e826057069ed8f3b6456f2c1980076.tar.gz
splint and cppcheck cleanup. All regression tests pass.
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 d6283c15..d26704a6 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -555,7 +555,7 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
} sample;
/* chrony must be started first as chrony insists on creating the socket */
/* open the chrony socket */
- int chronyfd;
+ int chronyfd = -1;
char chrony_path[PATH_MAX];
gpsd_report(LOG_PROG, "PPS Create Thread gpsd_ppsmonitor\n");