summaryrefslogtreecommitdiff
path: root/test_packet.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-29 13:30:25 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-29 13:30:25 -0400
commita7c2f46d6d14f81cf379b6a77a4919ded0408a39 (patch)
tree4321242d66635581a117e8ca26f41235718fba95 /test_packet.c
parent689e3c3f6c388709a560c1e42b3a04a18020a4fb (diff)
downloadgpsd-a7c2f46d6d14f81cf379b6a77a4919ded0408a39.tar.gz
splint cleanup. Regression tests pass and PPS live-tests correctly.
Diffstat (limited to 'test_packet.c')
-rw-r--r--test_packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test_packet.c b/test_packet.c
index 9830d6cd..2228ddbf 100644
--- a/test_packet.c
+++ b/test_packet.c
@@ -330,7 +330,7 @@ static int property_check(void)
int status;
for (dp = gpsd_drivers; *dp; dp++) {
- if ((*dp)->packet_type == COMMENT_PACKET)
+ if (*dp == NULL || (*dp)->packet_type == COMMENT_PACKET)
continue;
#ifdef RECONFIGURE_ENABLE
@@ -370,7 +370,7 @@ static int property_check(void)
status = EXIT_SUCCESS;
for (dp = gpsd_drivers; *dp; dp++) {
- if ((*dp)->packet_type == COMMENT_PACKET)
+ if (*dp == NULL || (*dp)->packet_type == COMMENT_PACKET)
continue;
#ifdef CONTROLSEND_ENABLE
if (CONTROLLABLE(*dp) && (*dp)->control_send == NULL) {