projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d546c4
)
processes plugin: len is unsigned
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:44:43 +0000
(10:44 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:44:43 +0000
(10:44 +0200)
[src/processes.c:1219]: (style) Checking if unsigned variable 'len' is less than zero.
src/processes.c
patch
|
blob
|
history
diff --git
a/src/processes.c
b/src/processes.c
index
efc64d0
..
4f2283f
100644
(file)
--- a/
src/processes.c
+++ b/
src/processes.c
@@
-1216,7
+1216,7
@@
static char *ps_get_cmdline (long pid, char *name, char *buf, size_t buf_len)
buf_ptr += status;
len -= status;
- if (len
<
= 0)
+ if (len
=
= 0)
break;
}