projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0b94a5
)
apache plugin: len is unsigned
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:13:21 +0000
(12:13 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:13:49 +0000
(12:13 +0200)
[src/apache.c:140]: (style) Checking if unsigned variable 'len' is less than zero.
src/apache.c
patch
|
blob
|
history
diff --git
a/src/apache.c
b/src/apache.c
index
baa6081
..
0db5328
100644
(file)
--- a/
src/apache.c
+++ b/
src/apache.c
@@
-98,7
+98,7
@@
static size_t apache_curl_callback (void *buf, size_t size, size_t nmemb,
return (0);
}
- if (len
<
= 0)
+ if (len
=
= 0)
return (len);
if ((st->apache_buffer_fill + len) >= st->apache_buffer_size)
@@
-137,7
+137,7
@@
static size_t apache_header_callback (void *buf, size_t size, size_t nmemb,
return (0);
}
- if (len
<
= 0)
+ if (len
=
= 0)
return (len);
/* look for the Server header */