projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a455c5
)
bind plugin: len is unsigned
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:09:33 +0000
(12:09 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:09:33 +0000
(12:09 +0200)
[src/bind.c:280]: (style) Checking if unsigned variable 'len' is less than zero.
src/bind.c
patch
|
blob
|
history
diff --git
a/src/bind.c
b/src/bind.c
index
f2cd167
..
e6855d2
100644
(file)
--- a/
src/bind.c
+++ b/
src/bind.c
@@
-277,7
+277,7
@@
static size_t bind_curl_callback (void *buf, size_t size, /* {{{ */
{
size_t len = size * nmemb;
- if (len
<
= 0)
+ if (len
=
= 0)
return (len);
if ((bind_buffer_fill + len) >= bind_buffer_size)