From a8e4ddd408bd6bd689bc88551a2a461cc81b432a Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Sun, 18 Dec 2016 05:39:21 +0000 Subject: [PATCH] lib: Initialize ->allowrepeat Signed-off-by: Quentin Young --- lib/command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/command.c b/lib/command.c index a93f3a55e8..7ad4441bb2 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2404,12 +2404,13 @@ cmd_init (int terminal) struct cmd_token * new_cmd_token (enum cmd_token_type type, u_char attr, char *text, char *desc) { - struct cmd_token *token = XMALLOC (MTYPE_CMD_TOKENS, sizeof (struct cmd_token)); + struct cmd_token *token = XCALLOC (MTYPE_CMD_TOKENS, sizeof (struct cmd_token)); token->type = type; token->attr = attr; token->text = text; token->desc = desc; token->arg = NULL; + token->allowrepeat = false; return token; } -- 2.39.5