backend/libinput: avoid potential NULL access in wlr_libinput_get_device_handle

master
Simon Zeni 8 months ago committed by Simon Ser
parent 8221c487ed
commit cc10a5259d

@ -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…
Cancel
Save