diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2018-08-09 11:06:03 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2018-08-09 11:06:54 -0400 |
commit | 967de457b098129718c5e4d928d57a6da40718ef (patch) | |
tree | 2ea58167879a18e65ccf9f44446934b8cddb2839 /drivers.c | |
parent | 2ed105d6ff670b74ee43afff97cd4a9cf5eeeae1 (diff) | |
download | gpsd-967de457b098129718c5e4d928d57a6da40718ef.tar.gz |
Fix a core dump introduced by the previous compiler warning fix.
Diffstat (limited to 'drivers.c')
-rw-r--r-- | drivers.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |