mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 20:15:08 +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 *
|
struct cmd_token *
|
||||||
new_cmd_token (enum cmd_token_type type, u_char attr, char *text, char *desc)
|
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->type = type;
|
||||||
token->attr = attr;
|
token->attr = attr;
|
||||||
token->text = text;
|
token->text = text;
|
||||||
token->desc = desc;
|
token->desc = desc;
|
||||||
token->arg = NULL;
|
token->arg = NULL;
|
||||||
|
token->allowrepeat = false;
|
||||||
|
|
||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user