From e899af89b5f76bb79efae9fa3d7dda23d7a6f537 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 22 Nov 2017 16:41:26 +0100 Subject: [PATCH] BUG/MEDIUM: cache fix cli_kws structure The cli_kws structure was not ended and was causing undefined behavior. --- src/cache.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cache.c b/src/cache.c index c26b3a6a9..349101520 100644 --- a/src/cache.c +++ b/src/cache.c @@ -920,10 +920,8 @@ static int cli_io_handler_show_cache(struct appctx *appctx) } static struct cli_kw_list cli_kws = {{},{ - { { "show", "cache", NULL }, - "show cache : show cache status", - cli_parse_show_cache, cli_io_handler_show_cache, NULL, - }, + { { "show", "cache", NULL }, "show cache : show cache status", cli_parse_show_cache, cli_io_handler_show_cache, NULL, NULL }, + {{},} }};