aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-05-15 03:18:08 +0800
committerjoe <joe@FreeBSD.org>2001-05-15 03:18:08 +0800
commit1c01de1b1e680818cb5a92664732a107ffe691cd (patch)
treee6368179c367f76f6211e0e09d9daab4c51e049c /CVSROOT
parentc27f6ad879fefa77fdabda8a6da440b4d34a3cb2 (diff)
downloadfreebsd-ports-gnome-1c01de1b1e680818cb5a92664732a107ffe691cd.tar.gz
freebsd-ports-gnome-1c01de1b1e680818cb5a92664732a107ffe691cd.tar.zst
freebsd-ports-gnome-1c01de1b1e680818cb5a92664732a107ffe691cd.zip
Be more careful when removing duplicate lines. Remember that
perl considers "0" false, not true, so explicitly check each line against "".
Diffstat (limited to 'CVSROOT')
-rwxr-xr-xCVSROOT/logcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/CVSROOT/logcheck b/CVSROOT/logcheck
index fa4d88e9df7e..422ff58abb32 100755
--- a/CVSROOT/logcheck
+++ b/CVSROOT/logcheck
@@ -57,7 +57,7 @@ close IN;
# Remove leading, trailing and duplicate blank lines.
my $i = 0;
while ($i < scalar(@log_in)) {
- unless ($log_in[$i] or $log_in[$i + 1]) {
+ if ($log_in[$i] eq "" && $log_in[$i + 1] eq "") {
splice(@log_in, $i, 1);
next;
}