diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 05:37:47 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 05:37:47 -0400 |
commit | c8a5b43df68e0f8abbad02f07fda76085a5370f0 (patch) | |
tree | 75a19f9554a8828dceda396d253447fedb7e7ea5 /net_ntrip.c | |
parent | de4f0dd3394dbbd554eba384fa3910b9b4a0bd47 (diff) | |
download | gpsd-c8a5b43df68e0f8abbad02f07fda76085a5370f0.tar.gz |
Pacify Coverity some more.
Diffstat (limited to 'net_ntrip.c')
-rw-r--r-- | net_ntrip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net_ntrip.c b/net_ntrip.c index 5ef8ab0f..bf01848d 100644 --- a/net_ntrip.c +++ b/net_ntrip.c @@ -389,7 +389,6 @@ static int ntrip_stream_get_parse(const struct ntrip_stream_t *stream, int dsock char buf[BUFSIZ]; int opts; memset(buf, 0, sizeof(buf)); - /* coverity[string_null] - guaranteed terminated by previous memset */ while (read(dsock, buf, sizeof(buf) - 1) == -1) { if (errno == EINTR) continue; @@ -399,6 +398,7 @@ static int ntrip_stream_get_parse(const struct ntrip_stream_t *stream, int dsock } /* parse 401 Unauthorized */ + /* coverity[string_null] - guaranteed terminated by the memset above */ if (strstr(buf, NTRIP_UNAUTH)!=NULL) { gpsd_report(LOG_ERROR, "not authorized for Ntrip stream %s/%s\n", stream->url, |