diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-12-18 05:39:21 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-12-18 05:39:21 +0000 |
| commit | a8e4ddd408bd6bd689bc88551a2a461cc81b432a (patch) | |
| tree | bd1494877d5feac7564a2a9a3c2ca3cd3cd69e32 /lib/command.c | |
| parent | 6cc1ba027fdfbe7f7f9c9aa552f36f80950a4a64 (diff) | |
lib: Initialize ->allowrepeat
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
