mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 17:20:39 +01:00
test: initialize syspath
When the condition with continue was hit, syspath was still compared in the loop condition, leading to crashes when strcmp()-ing a random string. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
16b4dbac79
commit
cd6326aa22
1 changed files with 1 additions and 1 deletions
|
|
@ -1834,7 +1834,7 @@ litest_create_uinput_device_from_description(const char *name,
|
|||
struct udev_monitor *udev_monitor;
|
||||
struct udev_device *udev_device;
|
||||
const char *udev_action;
|
||||
const char *udev_syspath;
|
||||
const char *udev_syspath = NULL;
|
||||
|
||||
udev = udev_new();
|
||||
litest_assert_notnull(udev);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue