summaryrefslogtreecommitdiff
path: root/libgps_core.c
diff options
context:
space:
mode:
authorMichael Tatarinov <kukabu@gmail.com>2011-09-30 06:47:10 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-30 06:47:10 -0400
commit3230c766b2db1550d5c4d7669f11c1a69d75bc86 (patch)
tree2714555cb1f07ee10a6b31ec80b565b5d65b387b /libgps_core.c
parent88cf39a24114fc9eb27fbfdda20303f5e6d9a0d9 (diff)
downloadgpsd-3230c766b2db1550d5c4d7669f11c1a69d75bc86.tar.gz
Remove duplicate code.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'libgps_core.c')
-rw-r--r--libgps_core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgps_core.c b/libgps_core.c
index f8edff46..1759e6a5 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -94,7 +94,9 @@ int gps_open(/*@null@*/const char *host,
gpsdata->set = 0;
gpsdata->status = STATUS_NO_FIX;
- gps_clear_fix(&gpsdata->fix);
+ gpsdata->satellites_used = 0;
+ gps_clear_fix(&(gpsdata->fix));
+ gps_clear_dop(&(gpsdata->dop));
return status;
/*@ +branchstate +compdef @*/