From 967de457b098129718c5e4d928d57a6da40718ef Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 9 Aug 2018 11:06:03 -0400 Subject: Fix a core dump introduced by the previous compiler warning fix. --- drivers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers.c') 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; -- cgit v1.2.1