From ee0e8661c12639691d28753753a8390144d713ce Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 13 Feb 2005 17:01:54 +0000 Subject: protect against bad depth (may occur on ppc?) --- perl-install/Xconfig/monitor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/Xconfig') diff --git a/perl-install/Xconfig/monitor.pm b/perl-install/Xconfig/monitor.pm index 6de16fe8c..76fc6e13e 100644 --- a/perl-install/Xconfig/monitor.pm +++ b/perl-install/Xconfig/monitor.pm @@ -176,7 +176,7 @@ sub getinfoFromDDC() { local $_; while (($_ = shift @l) ne "\n") { my ($depth, $x, $y) = split; - $depth = int(log($depth) / log(2)); + $depth = int(log($depth) / log(2)) if $depth; push @Modes, [ $x, $y, $depth ]; } -- cgit v1.2.1