From 8f8efb89259311d414cfd2ff428d4aaa7fb25533 Mon Sep 17 00:00:00 2001 From: thantry Date: Tue, 29 Apr 2003 03:56:41 +0000 Subject: [PATCH] Obvious issue with parser in the absence of the start and the end line switch. Fixed the same. --- lustre/utils/llparser.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/utils/llparser.pm b/lustre/utils/llparser.pm index 800dbe5..7acc83a6 100644 --- a/lustre/utils/llparser.pm +++ b/lustre/utils/llparser.pm @@ -639,7 +639,7 @@ sub parse_file $linecnt++; my @parsed_line = get_parsed_line($file, $linecnt, $_, $sline); next if ($#parsed_line == 0); - last if ($linecnt > $eline); + last if ($eline && ($linecnt > $eline)); next if (ignore_conditions(\@parsed_line, $pid, $rpctrace, $trace, $nodlm, $noclass, $nonet)); @@ -1003,7 +1003,7 @@ sub get_parsed_line() my $linecnt = shift; my $in_line = shift; my $sline = shift; - if ($linecnt < $sline) { + if (($sline) && ($linecnt < $sline)) { return 0; } if ($in_line =~ /$REGEX/) { -- 1.8.3.1