summaryrefslogtreecommitdiffstats
path: root/CVSROOT/logcheck
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-05-14 19:18:08 +0000
committerjoe <joe@FreeBSD.org>2001-05-14 19:18:08 +0000
commit1c01de1b1e680818cb5a92664732a107ffe691cd (patch)
treee6368179c367f76f6211e0e09d9daab4c51e049c /CVSROOT/logcheck
parentc27f6ad879fefa77fdabda8a6da440b4d34a3cb2 (diff)
downloadFreeBSD-ports-1c01de1b1e680818cb5a92664732a107ffe691cd.zip
FreeBSD-ports-1c01de1b1e680818cb5a92664732a107ffe691cd.tar.gz
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/logcheck')
-rwxr-xr-xCVSROOT/logcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/CVSROOT/logcheck b/CVSROOT/logcheck
index fa4d88e..422ff58 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;
}
OpenPOWER on IntegriCloud