From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:44:40 +0000 (+0100) Subject: libcollectdclient: fix minor style issue X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9fa5f66cfd8933bd2a02c118cc1215b350e76e97;p=collectd.git libcollectdclient: fix minor style issue --- diff --git a/src/libcollectdclient/network_parse.c b/src/libcollectdclient/network_parse.c index a8f6bd61..73476fb7 100644 --- a/src/libcollectdclient/network_parse.c +++ b/src/libcollectdclient/network_parse.c @@ -303,8 +303,8 @@ static int parse_values(void *payload, size_t payload_size, return EINVAL; state->values_len = (size_t)n; - state->values = calloc(sizeof(*state->values), state->values_len); - state->values_types = calloc(sizeof(*state->values_types), state->values_len); + state->values = calloc(state->values_len, sizeof(*state->values)); + state->values_types = calloc(state->values_len, sizeof(*state->values_types)); if ((state->values == NULL) || (state->values_types == NULL)) { return ENOMEM; }