From 6777942b404dced12f9e7b11031bb87252c13ca2 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 15 Dec 2018 18:18:26 +0100 Subject: [PATCH] daemon/plugin.c: fix minor style issue --- src/daemon/plugin.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; } -- 2.11.0