summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers.c b/drivers.c
index bd122df5..0256995b 100644
--- a/drivers.c
+++ b/drivers.c
@@ -1409,7 +1409,7 @@ static bool aivdm_decode(const char *buf, size_t buflen,
/* discard sentences with high-half characters in them, they're corrupted */
for (cp1 = buf; *cp1; cp1++) {
- if (!isascii(*cp)) {
+ if (!isascii(*cp1)) {
gpsd_log(&session->context->errout, LOG_ERROR,
"corrupted AIVDM packet.\n");
return false;