projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
176fcb8
)
nginx plugin: len is unsigned
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:50:48 +0000
(10:50 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:50:48 +0000
(10:50 +0200)
[src/nginx.c:74]: (style) Checking if unsigned variable 'len' is less than zero.
src/nginx.c
patch
|
blob
|
history
diff --git
a/src/nginx.c
b/src/nginx.c
index
e493cc9
..
7587c1f
100644
(file)
--- a/
src/nginx.c
+++ b/
src/nginx.c
@@
-71,7
+71,7
@@
static size_t nginx_curl_callback (void *buf, size_t size, size_t nmemb,
len = (sizeof (nginx_buffer) - 1) - nginx_buffer_len;
}
- if (len
<
= 0)
+ if (len
=
= 0)
return (len);
memcpy (&nginx_buffer[nginx_buffer_len], buf, len);