summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-02-13 17:01:54 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-02-13 17:01:54 +0000
commitee0e8661c12639691d28753753a8390144d713ce (patch)
tree938a1699e3b2ee703dbdcb4298649206edf7521c
parent0d4c69ea4990e17bd558898ee068b76259b8a199 (diff)
downloaddrakx-backup-do-not-use-ee0e8661c12639691d28753753a8390144d713ce.tar
drakx-backup-do-not-use-ee0e8661c12639691d28753753a8390144d713ce.tar.gz
drakx-backup-do-not-use-ee0e8661c12639691d28753753a8390144d713ce.tar.bz2
drakx-backup-do-not-use-ee0e8661c12639691d28753753a8390144d713ce.tar.xz
drakx-backup-do-not-use-ee0e8661c12639691d28753753a8390144d713ce.zip
protect against bad depth (may occur on ppc?)
-rw-r--r--perl-install/Xconfig/monitor.pm2
1 files changed, 1 insertions, 1 deletions
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 ];
}