diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-09 19:19:29 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-09 19:19:29 -0500 |
commit | 5b4af8cc002773058ad744f9c2f9975284b09224 (patch) | |
tree | eb8d17794438906756031692e45112bd6e215f4e /gpsdecode.c | |
parent | 2c9e5b2eb52fb2d6eee3f8fc50ee916e68ee017a (diff) | |
download | gpsd-5b4af8cc002773058ad744f9c2f9975284b09224.tar.gz |
cppcheck and Coverity cleanup; all regression tests pass.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r-- | gpsdecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsdecode.c b/gpsdecode.c index ece81d57..c64f2d02 100644 --- a/gpsdecode.c +++ b/gpsdecode.c @@ -611,9 +611,9 @@ static void decode(FILE *fpin, FILE*fpout) if (minlength) { for (i = 0; i < (int)(sizeof(minima)/sizeof(minima[0])); i++) { - const struct gps_type_t **dp; /* dump all minima, ignoring comments */ if (i != 1 && minima[i] < MAX_PACKET_LENGTH+1) { + const struct gps_type_t **dp; char *np = "Unknown"; for (dp = gpsd_drivers; *dp; dp++) { if ((*dp)->packet_type == i-1) { |