From b20cf740c5794dffb60a310831fcde04a099ef87 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 13 Jul 2011 09:15:06 -0600 Subject: [PATCH] mktables: Reorder error check The error check should happen after we decide the whole thing is a no-op. --- lib/unicore/mktables | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/unicore/mktables b/lib/unicore/mktables index be375f8..6234ab4 100644 --- a/lib/unicore/mktables +++ b/lib/unicore/mktables @@ -3509,11 +3509,11 @@ sub trace { return main::trace(@_); } # Don't add an exact duplicate, as it isn't really a multiple if ($end >= $r->[$i]->start) { + return if $value eq $r->[$i]->value && $type eq $r->[$i]->type; if ($r->[$i]->start != $r->[$i]->end) { Carp::my_carp_bug("$owner_name_of{$addr}Can't cope with adding a multiple record when the existing range ($r->[$i]) contains more than one code point. No action taken."); return; } - return if $value eq $r->[$i]->value && $type eq $r->[$i]->type; } trace "Adding multiple record at $i with $start..$end, $value" if main::DEBUG && $to_trace; -- 2.7.4