projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bed961a
)
curl plugin: len is unsigned
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:07:23 +0000
(12:07 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:07:33 +0000
(12:07 +0200)
[src/curl.c:98]: (style) Checking if unsigned variable 'len' is less than zero.
src/curl.c
patch
|
blob
|
history
diff --git
a/src/curl.c
b/src/curl.c
index
4bb58e2
..
2ed0922
100644
(file)
--- a/
src/curl.c
+++ b/
src/curl.c
@@
-95,7
+95,7
@@
static size_t cc_curl_callback (void *buf, /* {{{ */
size_t len;
len = size * nmemb;
- if (len
<
= 0)
+ if (len
=
= 0)
return (len);
wp = user_data;