From 98e6a4bd8f03e65e2ade3c06ea79c42a5bceb631 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Tue, 1 Nov 2022 13:21:35 -0400 Subject: [PATCH] Implemented the change from pull request #65 from Mitch Bailey (slightly altered to put the inexpensive flag checks before the more expensive string match). --- base/netcmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/netcmp.c b/base/netcmp.c index 539a191..8d8efbc 100644 --- a/base/netcmp.c +++ b/base/netcmp.c @@ -6952,7 +6952,8 @@ int EquivalenceClasses(char *name1, int file1, char *name2, int file2) /* conflicting names exist, then alter the classhash to make it */ /* unique. In the case of duplicate cells, don't do this. */ - if (!(tp->flags & CELL_DUPLICATE) && !(tp2->flags & CELL_DUPLICATE)) { + if (!(tp->flags & CELL_DUPLICATE) && !(tp2->flags & CELL_DUPLICATE) && + !(*matchfunc)(name1, name2)) { tpx = LookupCellFile(name1, file2); if (tpx != NULL) need_new_seed = 1; tpx = LookupCellFile(name2, file1);