projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6ec15f
)
libcollectdclient: fix minor style issue
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 17:44:40 +0000
(18:44 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 18:40:14 +0000
(19:40 +0100)
src/libcollectdclient/network_parse.c
patch
|
blob
|
history
diff --git
a/src/libcollectdclient/network_parse.c
b/src/libcollectdclient/network_parse.c
index
a8f6bd6
..
73476fb
100644
(file)
--- 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(s
izeof(*state->values), state->values_len
);
- state->values_types = calloc(s
izeof(*state->values_types), state->values_len
);
+ state->values = calloc(s
tate->values_len, sizeof(*state->values)
);
+ state->values_types = calloc(s
tate->values_len, sizeof(*state->values_types)
);
if ((state->values == NULL) || (state->values_types == NULL)) {
return ENOMEM;
}