From: Quentin Young Date: Sun, 18 Dec 2016 05:39:21 +0000 (+0000) Subject: lib: Initialize ->allowrepeat X-Git-Tag: frr-3.0-branchpoint~104^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a8e4ddd408bd6bd689bc88551a2a461cc81b432a;p=matthieu%2Ffrr.git lib: Initialize ->allowrepeat Signed-off-by: Quentin Young --- 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; }