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:
Quentin Young 2016-08-09 20:28:35 +00:00
parent 07079d78bc
commit e52c05cd80

View File

@ -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: