mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 20:51:17 +00:00
lib: Revert breaking change to cmp_node
Bad conditional refactor broke graph deduplication and thus disambiguation precedence Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
07079d78bc
commit
e52c05cd80
@ -478,8 +478,11 @@ cmp_node (struct graph_node *first, struct graph_node *second)
|
||||
switch (first->type) {
|
||||
case WORD_GN:
|
||||
case VARIABLE_GN:
|
||||
if (first->text && second->text && strcmp (first->text, second->text))
|
||||
if (first->text && second->text)
|
||||
{
|
||||
if (strcmp (first->text, second->text))
|
||||
return 0;
|
||||
}
|
||||
else if (first->text != second->text) return 0;
|
||||
break;
|
||||
case RANGE_GN:
|
||||
|
Loading…
Reference in New Issue
Block a user