From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:44:40 +0000 (+0100) Subject: libcollectdclient: fix minor style issue X-Git-Tag: collectd-5.9.0~68^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fa5f66cfd8933bd2a02c118cc1215b350e76e97;p=thirdparty%2Fcollectd.git libcollectdclient: fix minor style issue --- diff --git a/src/libcollectdclient/network_parse.c b/src/libcollectdclient/network_parse.c index a8f6bd61c..73476fb7c 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; }