From: Ruben Kerkhof Date: Sat, 23 Apr 2016 08:44:43 +0000 (+0200) Subject: processes plugin: len is unsigned X-Git-Tag: collectd-5.6.0~329^2~35 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d0839a306373e62cd0694f343c7fbaf89183d83a;hp=0d546c4bb841255c4cb0405fee8983b62ec0941a;p=collectd.git processes plugin: len is unsigned [src/processes.c:1219]: (style) Checking if unsigned variable 'len' is less than zero. --- diff --git a/src/processes.c b/src/processes.c index efc64d01..4f2283fc 100644 --- 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; }