projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e88be91
)
curl_xml plugin: len is unsigned
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:02:14 +0000
(12:02 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:02:14 +0000
(12:02 +0200)
[src/curl_xml.c:117]: (style) Checking if unsigned variable 'len' is less than zero.
src/curl_xml.c
patch
|
blob
|
history
diff --git
a/src/curl_xml.c
b/src/curl_xml.c
index
58cb42d
..
86cc87f
100644
(file)
--- a/
src/curl_xml.c
+++ b/
src/curl_xml.c
@@
-114,7
+114,7
@@
static size_t cx_curl_callback (void *buf, /* {{{ */
return (0);
}
- if (len
<
= 0)
+ if (len
=
= 0)
return (len);
if ((db->buffer_fill + len) >= db->buffer_size)