From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:18:26 +0000 (+0100) Subject: daemon/plugin.c: fix minor style issue X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6777942b404dced12f9e7b11031bb87252c13ca2;p=collectd.git daemon/plugin.c: fix minor style issue --- diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c index c2017aca..bbf6144d 100644 --- a/src/daemon/plugin.c +++ b/src/daemon/plugin.c @@ -320,7 +320,6 @@ static void log_list_callbacks(llist_t **list, /* {{{ */ int i; llentry_t *le; int n; - char **keys; n = llist_size(*list); if (n == 0) { @@ -328,11 +327,9 @@ static void log_list_callbacks(llist_t **list, /* {{{ */ return; } - keys = calloc(n, sizeof(char *)); - + char **keys = calloc(n, sizeof(*keys)); if (keys == NULL) { ERROR("%s: failed to allocate memory for list of callbacks", comment); - return; }