From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:42:59 +0000 (+0100) Subject: java plugin: fix minor style issue X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b6ec15f38e5b9326080dcc30932c6c0b92d8f6e5;p=collectd.git java plugin: fix minor style issue --- diff --git a/src/java.c b/src/java.c index 3f4b3d1a..0a5336a5 100644 --- 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);