summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92cc063)
raw | patch | inline | side by side (parent: 92cc063)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:56:10 +0000 (10:56 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:56:10 +0000 (10:56 +0200) |
src/utils_db_query.c | patch | blob | history |
diff --git a/src/utils_db_query.c b/src/utils_db_query.c
index 1f5ea7ab839761fd89d31fbc46ca5c452c1294e8..e6e70527aa2fe5caf25636a73c00ec99d59bb87d 100644 (file)
--- a/src/utils_db_query.c
+++ b/src/utils_db_query.c
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.");