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