diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-11-26 23:58:34 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-11-26 23:58:34 +0000 |
commit | 5f5bab6cee9ebc3af7c7c7cb46601f20cbc075af (patch) | |
tree | 2c559fd1966f883e0313d8eb3105e78e7a88e01a /libgpsd_core.c | |
parent | d4f422ca29db05e2111f365e0f2bd4423787d454 (diff) | |
download | gpsd-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.c | 2 |
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 |