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. --- gpsd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gpsd.c') diff --git a/gpsd.c b/gpsd.c index 7a693ef0..ac6ce5d5 100644 --- a/gpsd.c +++ b/gpsd.c @@ -1774,6 +1774,7 @@ static void netgnss_autoconnect(struct gps_context_t *context, sp->dist = DGPS_THRESHOLD; sp->server[0] = '\0'; } + hold.lat = hold.lon = 0; while (fgets(buf, (int)sizeof(buf), sfp)) { char *cp = strchr(buf, '#'); if (cp != NULL) -- cgit v1.2.1