summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-04-30 23:44:20 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-04-30 23:44:20 -0400
commitf588e22468704552b37530a4a1849969011dda3d (patch)
treebbc971b33ce48b6389c0c8101c47c9bddc5d8b53 /ntpshm.c
parentf75cd2901b571e4429dcf530b8217aa60eeeb750 (diff)
downloadgpsd-f588e22468704552b37530a4a1849969011dda3d.tar.gz
Clean up more static-analysis warnings.
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 e01703fa..fb710327 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -632,7 +632,6 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
while (!gpsd_ppsmonitor_stop) {
bool ok = false;
char *log = NULL;
- char *log1 = NULL;
#if defined(TIOCMIWAIT)
#define PPS_LINE_TIOC (TIOCM_CD|TIOCM_CAR|TIOCM_RI|TIOCM_CTS)
@@ -856,6 +855,7 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
#endif /* TIOCMIWAIT */
if (ok) {
+ char *log1 = NULL;
gpsd_report(LOG_RAW, "PPS edge accepted %.100s", log);
/* chrony expects tv-sec since Jan 1970 */
/* FIXME!! offset is double of the error from local time */