X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmatch_value.c;h=599f1cfb4bc6863b8432400b25cf18c7b6f2bc33;hb=72a76347831a848e6722d9147297a1e03c4c01d8;hp=fbe1f03987bcf0056d704d1b3f7e9bbe372d0ed9;hpb=66697ecf25472974bb0414e68ca682e93e1b8c8d;p=collectd.git diff --git a/src/match_value.c b/src/match_value.c index fbe1f039..599f1cfb 100644 --- a/src/match_value.c +++ b/src/match_value.c @@ -129,7 +129,7 @@ static int mv_config_add_data_source (mv_match_t *m, /* {{{ */ /* Allocate space for the char pointers */ new_data_sources_num = m->data_sources_num + ((size_t) ci->values_num); - temp = (char **) realloc (m->data_sources, + temp = realloc (m->data_sources, new_data_sources_num * sizeof (char *)); if (temp == NULL) {