summaryrefslogtreecommitdiff
path: root/nmea_parse.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2007-03-15 06:33:17 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2007-03-15 06:33:17 +0000
commit392df725d638e88e924e4f28da02614bd9169e41 (patch)
tree13db64cabe223a3143482a25aa516d3b47b4b852 /nmea_parse.c
parent5ef56da9c40cf5ed96344d1821090e5eb27c61fe (diff)
downloadgpsd-392df725d638e88e924e4f28da02614bd9169e41.tar.gz
get rid of an erroneous strlen test
Diffstat (limited to 'nmea_parse.c')
-rw-r--r--nmea_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nmea_parse.c b/nmea_parse.c
index 51797215..61a5609e 100644
--- a/nmea_parse.c
+++ b/nmea_parse.c
@@ -679,7 +679,7 @@ gps_mask_t nmea_parse(char *sentence, struct gps_device_t *session)
count = 0;
p = (char *)buf + 1; /* beginning of tag, 'G' not '$' */
/* while there is a search string and we haven't run off the buffer... */
- while((p != NULL) && strlen(p) && (p <= t)){
+ while((p != NULL) && (p <= t)){
field[count] = p; /* we have a field. record it */
if ((p = strchr(p, ',')) != NULL){ /* search for the next delimiter */
*p = '\0'; /* replace it with a NUL */