summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Xconfig/monitor.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Xconfig/monitor.pm b/lib/Xconfig/monitor.pm
index cc963c7..75fcb6e 100644
--- a/lib/Xconfig/monitor.pm
+++ b/lib/Xconfig/monitor.pm
@@ -82,7 +82,8 @@ sub configure_auto_install {
my $card_Driver;
if (!is_valid($monitors->[0])) {
- $card_Driver ||= first(Xconfig::card::probe())->{Driver};
+ my ($first_card) = Xconfig::card::probe();
+ $card_Driver = $first_card->{Driver} if $first_card;
put_in_hash($monitors->[0], probe($card_Driver));
}