fscache plugin: unsigned value can't be negative
[collectd.git] / src / fscache.c
index 8fbd271..68f5c79 100644 (file)
@@ -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));