From f588e22468704552b37530a4a1849969011dda3d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 30 Apr 2013 23:44:20 -0400 Subject: Clean up more static-analysis warnings. --- ntpshm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ntpshm.c') 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 */ -- cgit v1.2.1