From: Ruben Kerkhof Date: Sat, 23 Apr 2016 08:56:10 +0000 (+0200) Subject: utils_db_query.c: remove unnecessary cast X-Git-Tag: collectd-5.6.0~329^2~30 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=90074e29ba13eafa496e37ba5b3e23d06feb3a17;p=collectd.git utils_db_query.c: remove unnecessary cast --- diff --git a/src/utils_db_query.c b/src/utils_db_query.c index 1f5ea7ab..e6e70527 100644 --- a/src/utils_db_query.c +++ b/src/utils_db_query.c @@ -204,7 +204,7 @@ static int udb_result_submit (udb_result_t *r, /* {{{ */ assert (((size_t) r_area->ds->ds_num) == r->values_num); assert (r->values_num > 0); - vl.values = (value_t *) calloc (r->values_num, sizeof (value_t)); + vl.values = calloc (r->values_num, sizeof (*vl.values)); if (vl.values == NULL) { ERROR ("db query utils: calloc failed.");