diff --git a/src/fscache.c b/src/fscache.c
index 8fbd271394e90554fcf92f1c850f6b4733242537..33633d63247db02deb1c7a909d228557b90184c2 100644 (file)
--- a/src/fscache.c
+++ b/src/fscache.c
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include <stdio.h> /* a header needed for FILE */
char *lineptr;
char *fields[32];
int fields_num;
- int i;
/* Find the colon and replace it with a null byte */
lineptr = strchr (linebuffer, ':');
section_len--;
section[section_len] = 0;
}
- if (section_len <= 0)
+ if (section_len == 0)
continue;
fields_num = strsplit (lineptr, fields, STATIC_ARRAY_SIZE (fields));
if (fields_num <= 0)
continue;
- for (i = 0; i < fields_num; i++)
+ for (int i = 0; i < fields_num; i++)
{
char *field_name;
char *field_value_str;