From 3230c766b2db1550d5c4d7669f11c1a69d75bc86 Mon Sep 17 00:00:00 2001 From: Michael Tatarinov Date: Fri, 30 Sep 2011 06:47:10 -0400 Subject: Remove duplicate code. Signed-off-by: Eric S. Raymond --- libgps_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libgps_core.c') 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 @*/ -- cgit v1.2.1