summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--globals.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/globals.pl b/globals.pl
index 7439940c3..7c1c9eb93 100644
--- a/globals.pl
+++ b/globals.pl
@@ -1409,12 +1409,12 @@ sub DiffStrings {
# that were removed; @new contains ones that got added.
foreach my $oldv (@old) {
- foreach my $newv (@new) {
- next if ($newv eq '');
- if ($oldv eq $newv) {
- $newv = $oldv = '';
+ foreach my $newv (@new) {
+ next if ($newv eq '');
+ if ($oldv eq $newv) {
+ $newv = $oldv = '';
+ }
}
- }
}
my $removed = join (", ", grep { $_ ne '' } @old);
my $added = join (", ", grep { $_ ne '' } @new);