mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/libinput: avoid potential NULL access in wlr_libinput_get_device_handle
This commit is contained in:
parent
8221c487ed
commit
cc10a5259d
1 changed files with 2 additions and 0 deletions
|
|
@ -227,6 +227,8 @@ struct libinput_device *wlr_libinput_get_device_handle(
|
||||||
dev = device_from_tablet_pad(wlr_tablet_pad_from_input_device(wlr_dev));
|
dev = device_from_tablet_pad(wlr_tablet_pad_from_input_device(wlr_dev));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert(dev);
|
||||||
return dev->handle;
|
return dev->handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue