X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ffscache.c;h=332a32c487891e01a81c376b82d72b1e8afdc994;hb=aef788ac8927ffa74429daaffb572566fae782ec;hp=8fbd271394e90554fcf92f1c850f6b4733242537;hpb=4fd631aa4fc9aa2e5339a1531dc74915676844a4;p=collectd.git diff --git a/src/fscache.c b/src/fscache.c index 8fbd2713..332a32c4 100644 --- a/src/fscache.c +++ b/src/fscache.c @@ -20,6 +20,7 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" #include /* a header needed for FILE */ @@ -175,7 +176,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));