fscache plugin: unsigned value can't be negative
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 15:11:46 +0000 (17:11 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 15:11:46 +0000 (17:11 +0200)
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));