summaryrefslogtreecommitdiff
path: root/XOrg
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-07-30 10:56:21 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-08-02 15:09:33 +1000
commitc08a6259597b1750964864a36ffae7e9d810201b (patch)
treea03524bdd9532a6a24252e623ed7aa8dd037ca65 /XOrg
parent8db4acd506986f08b9d5a061006731d60c238715 (diff)
XOrg: for xorg.conf devices, "Using input driver" is the first line
Don't rely on $dev to be set. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'XOrg')
-rwxr-xr-xXOrg/xorglog.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/XOrg/xorglog.pm b/XOrg/xorglog.pm
index a29a611..eb287a3 100755
--- a/XOrg/xorglog.pm
+++ b/XOrg/xorglog.pm
@@ -186,7 +186,7 @@ sub _parse_input_drivers {
$self->server->add_device($dev);
} elsif ($_ =~ /$time_regex \(II\) Using input driver '(.*)' for '(.*)'/) {
my $module = $self->server->modules->{$1};
- if ($2 eq $dev->name) {
+ if (defined $dev and $2 eq $dev->name) {
$dev->module($module);
} else {
$dev = XOrg::InputDevice->new(