tools: pass a valid grab parameter to list-devices
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 19 Jun 2018 21:56:05 +0000 (07:56 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 20 Jun 2018 01:26:57 +0000 (11:26 +1000)
commit7c51c881dc72827ca50ae9eea3d123eef9cb4a66
treec89bc2f7f19863f7d7432b8359f68ded3e11f0fb
parente70e67847c0c52a0a6e4e6d2452a032911356451
tools: pass a valid grab parameter to list-devices

My kingdome for a compiler warning. Or a scan-build warning. Or a coverity
warning. Or anything... But no, nothing.

Also make the open_restricted() more robust to a NULL userdata, because
effectively that's what we were passing here.

Fixes https://gitlab.freedesktop.org/libinput/libinput/issues/50

Introduced in 0a13223c39fdf0f079715bf83d498c0dcd9cf4f8

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-list-devices.c
tools/shared.c