X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ffscache.c;h=68f5c79c98006c37585770b0674bd3b32611b9c7;hb=ba76b1429d2b11935602aaf85174fa6058325d0f;hp=8fbd271394e90554fcf92f1c850f6b4733242537;hpb=96e0f2341bace029acefe0a88bab96ae326c0ff5;p=collectd.git 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));