diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-06 08:06:51 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-06 08:07:42 -0500 |
commit | d93ba6e008cb6a7f75adf3d4c08876cf96fe95b0 (patch) | |
tree | dad294889820f98f7d7a9e50e0f9baac12796977 /libgps_sock.c | |
parent | f597416e78989e83b67608a4fb0542e2b33554d5 (diff) | |
download | gpsd-d93ba6e008cb6a7f75adf3d4c08876cf96fe95b0.tar.gz |
More cppcheck cleanup. All regression tests pass. PPS is live.
Diffstat (limited to 'libgps_sock.c')
-rw-r--r-- | libgps_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_sock.c b/libgps_sock.c index a8361077..e02028e4 100644 --- a/libgps_sock.c +++ b/libgps_sock.c @@ -269,7 +269,7 @@ int gps_unpack(char *buf, struct gps_data_t *gpsdata) if ( /*@i1@*/ strncmp(ns, "GPSD", 4) == 0) { /* the following should execute each time we have a good next sp */ for (sp = ns + 5; *sp != '\0'; sp = tp + 1) { - bool eol = false; + bool eol; tp = sp + strcspn(sp, ",\r\n"); eol = *tp == '\r' || *tp == '\n'; if (*tp == '\0') |