From: djk Date: Sun, 31 Oct 1999 22:09:18 +0000 (+0000) Subject: fix uninit line in console X-Git-Tag: R_1_34~20 X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?p=spider.git;a=commitdiff_plain;h=a5bd8a3c8ddca2ceb8ec805465d1b9b53f6812da fix uninit line in console --- diff --git a/perl/console.pl b/perl/console.pl index cec17ab4..a0e4f108 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -140,6 +140,7 @@ sub show_screen if ($spos >= @shistory - 1) { # if we really are scrolling thru at the end of the history + $spos = @shistory - 1 if $spos >= @shistory; my $line = $shistory[$spos]; $top->addstr("\n") if $spos > 0; setattr($line);