mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 09:47:11 +00:00
Merge pull request #24 from qlyoung/fix-uninitialized-jump
lib: Initialize ->allowrepeat
This commit is contained in:
commit
15667da96d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user