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:
Peter Hutterer 2015-07-06 11:37:46 +10:00
parent 16b4dbac79
commit cd6326aa22

View file

@ -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);