X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_match.c;h=5273c9018ccf6842373f88e96cdf2807cbbf156d;hb=3e211f8449bab9b9ef6f3b0e98817433101dc060;hp=803656d48b97a7b0c61b75c2e22a5ce878df4af5;hpb=4103105fb43cd72294f165b2541540b3a8a99532;p=collectd.git diff --git a/src/daemon/utils_match.c b/src/daemon/utils_match.c index 803656d4..5273c901 100644 --- a/src/daemon/utils_match.c +++ b/src/daemon/utils_match.c @@ -324,7 +324,6 @@ int match_apply (cu_match_t *obj, const char *str) regmatch_t re_match[32]; char *matches[32] = { 0 }; size_t matches_num; - size_t i; if ((obj == NULL) || (str == NULL)) return (-1); @@ -376,7 +375,7 @@ int match_apply (cu_match_t *obj, const char *str) } } - for (i = 0; i < matches_num; i++) + for (size_t i = 0; i < matches_num; i++) { sfree (matches[i]); }