diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-04-30 23:44:20 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-04-30 23:44:20 -0400 |
commit | f588e22468704552b37530a4a1849969011dda3d (patch) | |
tree | bbc971b33ce48b6389c0c8101c47c9bddc5d8b53 /ntpshm.c | |
parent | f75cd2901b571e4429dcf530b8217aa60eeeb750 (diff) | |
download | gpsd-f588e22468704552b37530a4a1849969011dda3d.tar.gz |
Clean up more static-analysis warnings.
Diffstat (limited to 'ntpshm.c')
-rw-r--r-- | ntpshm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |