summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-11-26 23:58:34 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-11-26 23:58:34 +0000
commit5f5bab6cee9ebc3af7c7c7cb46601f20cbc075af (patch)
tree2c559fd1966f883e0313d8eb3105e78e7a88e01a /libgpsd_core.c
parentd4f422ca29db05e2111f365e0f2bd4423787d454 (diff)
downloadgpsd-5f5bab6cee9ebc3af7c7c7cb46601f20cbc075af.tar.gz
Fix a minor bug: spurious "no probe matched" report.
Add a useful comment.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index fb536840..ac754a68 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -225,10 +225,12 @@ int gpsd_activate(struct gps_device_t *session, bool reconfigurable)
if ((*dp)->probe_detect!=NULL && (*dp)->probe_detect(session)!=0) {
gpsd_report(LOG_PROG, "probe found %s driver...\n", (*dp)->typename);
session->device_type = *dp;
+ goto foundit;
}
}
/*@ +mustfreeonly @*/
gpsd_report(LOG_PROG, "no probe matched...\n");
+ foundit:
#endif /* NON_NMEA_ENABLE */
session->gpsdata.online = timestamp();
#ifdef SIRF_ENABLE