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