summaryrefslogtreecommitdiff
path: root/driver_garmin_txt.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2017-09-06 20:47:40 -0400
committerEric S. Raymond <esr@thyrsus.com>2017-09-06 20:47:40 -0400
commitd17e6edd5d13490da6fc3edf8e032801d8380b50 (patch)
tree408e002837441a737d50b8c7bcbffbf14b6f86b1 /driver_garmin_txt.c
parent519bd230ac97a9114d307342108614b3c4f61f3c (diff)
downloadgpsd-d17e6edd5d13490da6fc3edf8e032801d8380b50.tar.gz
Revert a previous change to suppress cppcheck warning...
...that breaks the build on some platforms.
Diffstat (limited to 'driver_garmin_txt.c')
-rw-r--r--driver_garmin_txt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_garmin_txt.c b/driver_garmin_txt.c
index c14c5161..e8e878a2 100644
--- a/driver_garmin_txt.c
+++ b/driver_garmin_txt.c
@@ -172,6 +172,7 @@ static int gar_decode(const struct gps_context_t *context,
}
/* second character in prefix is flag for negative number */
if (preflen >= 2) {
+ // cppcheck-suppress arrayIndexOutOfBounds
if (buf[0] == prefix[1]) {
sign = -1.0;
break;