summaryrefslogtreecommitdiff
path: root/driver_superstar2.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-09 08:55:16 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-09 08:55:16 -0500
commit08bc6011e152dde5db2337e62aa31fbe451d5321 (patch)
tree8fb4bd1bb7c89daaec865c896190ced21848ea24 /driver_superstar2.c
parentd3c78b985b05a741dbb550bac5ce8ed581ce3258 (diff)
downloadgpsd-08bc6011e152dde5db2337e62aa31fbe451d5321.tar.gz
Fix a bug in Superstar satellites-used compuation.
Required one checkfile rebuild.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r--driver_superstar2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c
index 743d2133..cf631c8b 100644
--- a/driver_superstar2.c
+++ b/driver_superstar2.c
@@ -177,6 +177,7 @@ superstar2_msg_svinfo(struct gps_device_t *session,
nchan = 12;
gpsd_zero_satellites(&session->gpsdata);
nsv = 0; /* number of actually used satellites */
+ memset(session->sats_used, 0, sizeof(session->sats_used));
for (i = st = 0; i < nchan; i++) {
/* get info for one channel/satellite */
int off = i * 5 + 5;