summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2017-09-06 19:00:04 -0400
committerEric S. Raymond <esr@thyrsus.com>2017-09-06 19:00:04 -0400
commit9c7e8629876fb3ff115902e37fe562641ce9de11 (patch)
tree08ca2e4206ccc0dbda2ee946d907763ae9166aab /gpsd.c
parentdb56959e1cf2670edb02f27f25580bb4272e9df2 (diff)
downloadgpsd-9c7e8629876fb3ff115902e37fe562641ce9de11.tar.gz
Clean up C and Python code-checker warnings.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c1
1 files changed, 1 insertions, 0 deletions
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)