From 90074e29ba13eafa496e37ba5b3e23d06feb3a17 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:56:10 +0200 Subject: [PATCH] utils_db_query.c: remove unnecessary cast --- src/utils_db_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."); -- 2.30.2