projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92cc063
)
utils_db_query.c: remove unnecessary cast
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
1f5ea7a
..
e6e7052
100644
(file)
--- 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.");