summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-27 07:55:46 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-27 07:55:46 -0500
commit2c4665b8e8dceaca30eaee269a5624a70e2666b0 (patch)
treef949d3655d59cf7573e11663f51a0c880b04a448 /gpsd.c
parentb22062ef2eeb2aeac66854551e4f21df545709aa (diff)
downloadgpsd-2c4665b8e8dceaca30eaee269a5624a70e2666b0.tar.gz
Fix tracker bug #17810: ?WATCH filter isn't work[ing].
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 5107c8e7..b4294c4c 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1481,7 +1481,7 @@ static void consume_packets(struct gps_device_t *device)
/* update all subscribers associated with this device */
for (sub = subscribers; sub < subscribers + MAXSUBSCRIBERS; sub++) {
/*@-nullderef@*/
- if (sub == NULL || sub->active == 0)
+ if (sub == NULL || sub->active == 0 || !subscribed(sub, device))
continue;
/* report raw packets to users subscribed to those */