mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 19:10:35 +00:00
Merge pull request #96 from qlyoung/guard-strict-dedup
lib: guard strict cli completions
This commit is contained in:
commit
a9636cda9f
@ -541,8 +541,12 @@ completions_to_vec (struct list *completions)
|
|||||||
for (i = 0; i < vector_active (comps) && !exists; i++)
|
for (i = 0; i < vector_active (comps) && !exists; i++)
|
||||||
{
|
{
|
||||||
struct cmd_token *curr = vector_slot (comps, i);
|
struct cmd_token *curr = vector_slot (comps, i);
|
||||||
|
#ifdef VTYSH_DEBUG
|
||||||
exists = !strcmp (curr->text, token->text) &&
|
exists = !strcmp (curr->text, token->text) &&
|
||||||
!strcmp (curr->desc, token->desc);
|
!strcmp (curr->desc, token->desc);
|
||||||
|
#else
|
||||||
|
exists = !strcmp (curr->text, token->text);
|
||||||
|
#endif /* VTYSH_DEBUG */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!exists)
|
if (!exists)
|
||||||
|
Loading…
Reference in New Issue
Block a user