projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
201daa3
)
java plugin: fix minor style issue
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 17:42:59 +0000
(18:42 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 18:40:14 +0000
(19:40 +0100)
src/java.c
patch
|
blob
|
history
diff --git
a/src/java.c
b/src/java.c
index
3f4b3d1
..
0a5336a
100644
(file)
--- a/
src/java.c
+++ b/
src/java.c
@@
-1057,7
+1057,7
@@
static int jtoc_values_array(JNIEnv *jvm_env, /* {{{ */
BAIL_OUT(-1);
}
- values =
(value_t *)calloc(values_num, sizeof(value_t
));
+ values =
calloc(values_num, sizeof(*values
));
if (values == NULL) {
ERROR("java plugin: jtoc_values_array: calloc failed.");
BAIL_OUT(-1);