From 9c7e8629876fb3ff115902e37fe562641ce9de11 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 6 Sep 2017 19:00:04 -0400 Subject: Clean up C and Python code-checker warnings. --- drivers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers.c') diff --git a/drivers.c b/drivers.c index ebbcc6d6..f1057ca8 100644 --- a/drivers.c +++ b/drivers.c @@ -1608,7 +1608,7 @@ static void path_rewrite(struct gps_device_t *session, char *prefix) * beginning of the path attribute, followed by a # to separate it * from the device. */ - char *prefloc, *sfxloc; + char *prefloc; assert(prefix != NULL && session->lexer.outbuffer != NULL); @@ -1620,6 +1620,7 @@ static void path_rewrite(struct gps_device_t *session, char *prefix) prefloc < (char *)session->lexer.outbuffer+session->lexer.outbuflen; prefloc++) if (str_starts_with(prefloc, prefix)) { + char *sfxloc; char copy[sizeof(session->lexer.outbuffer)+1]; (void)strlcpy(copy, (char *)session->lexer.outbuffer, -- cgit v1.2.1