projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8c949f
)
ascent plugin: len is unsigned
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:12:31 +0000
(12:12 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:12:31 +0000
(12:12 +0200)
[src/ascent.c:157]: (style) Checking if unsigned variable 'len' is less than zero.
src/ascent.c
patch
|
blob
|
history
diff --git
a/src/ascent.c
b/src/ascent.c
index
d38e859
..
26f3a11
100644
(file)
--- a/
src/ascent.c
+++ b/
src/ascent.c
@@
-154,7
+154,7
@@
static size_t ascent_curl_callback (void *buf, size_t size, size_t nmemb, /* {{{
{
size_t len = size * nmemb;
- if (len
<
= 0)
+ if (len
=
= 0)
return (len);
if ((ascent_buffer_fill + len) >= ascent_buffer_size)