From: Peter Hutterer Date: Wed, 26 Oct 2011 04:42:36 +0000 (+1000) Subject: test-xi2: check return value of list, exit on failure X-Git-Url: https://diplodocus.org/git/xorg-xinput/commitdiff_plain/609039e67ef62f3e4efd0e04572bdcd86ea45d34?ds=sidebyside;hp=609039e67ef62f3e4efd0e04572bdcd86ea45d34 test-xi2: check return value of list, exit on failure If list() fails, the server doesn't support XI2 or the device is invalid. In either case, exit. Fixes crashes when a nonexisting device is given. Signed-off-by: Peter Hutterer ---