X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmatch_value.c;h=fd63ad83c2088312ca390d5ea4215e5f01ea3d51;hb=c8d167c5af263b6f56b39275fd5b281bdaf48b02;hp=64e1136703e9aaf2833a13fea9ded807a5802199;hpb=09c12e0e1e0ef340a7074146684650ed54cba64d;p=collectd.git diff --git a/src/match_value.c b/src/match_value.c index 64e11367..fd63ad83 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) {