summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
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)