From: Ruben Kerkhof Date: Sun, 24 Jul 2016 15:11:46 +0000 (+0200) Subject: fscache plugin: unsigned value can't be negative X-Git-Tag: collectd-5.6.0~167 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d8e65519a221b7cfa49fec3bcb745aa9fb6b9d70;p=collectd.git fscache plugin: unsigned value can't be negative --- diff --git a/src/fscache.c b/src/fscache.c index 8fbd2713..68f5c79c 100644 --- a/src/fscache.c +++ b/src/fscache.c @@ -175,7 +175,7 @@ static void fscache_read_stats_file (FILE *fh) section_len--; section[section_len] = 0; } - if (section_len <= 0) + if (section_len == 0) continue; fields_num = strsplit (lineptr, fields, STATIC_ARRAY_SIZE (fields));