From b2e3d4b89bdc2c8de7f400ef8cd036f44fa63be3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 20 Feb 2003 20:38:23 +0000 Subject: don't vivify @cards --- perl-install/Xconfig/card.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/Xconfig/card.pm b/perl-install/Xconfig/card.pm index 58634405a..562c328c9 100644 --- a/perl-install/Xconfig/card.pm +++ b/perl-install/Xconfig/card.pm @@ -379,7 +379,7 @@ sub multi_head_choices { my ($want_Xinerama, @cards) = @_; my @choices; - my $has_multi_head = @cards > 1 || $cards[0]{MULTI_HEAD} > 1; + my $has_multi_head = @cards > 1 || @cards && $cards[0]{MULTI_HEAD} > 1; my $disable_multi_head = any { $_->{Driver} or log::l("found card $_->{description} not supported by XF4, disabling multi-head support"); !$_->{Driver}; -- cgit v1.2.1