Merge pull request #24 from qlyoung/fix-uninitialized-jump

lib: Initialize ->allowrepeat
This commit is contained in:
Donald Sharp 2017-01-06 19:34:09 -05:00 committed by GitHub
commit 15667da96d

View File

@ -2400,12 +2400,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;
}