From cd6326aa22534a772fe60b84afd7e95411dc1d05 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 6 Jul 2015 11:37:46 +1000 Subject: [PATCH] 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 --- test/litest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index df521fe6..ab69d6c9 100644 --- a/test/litest.c +++ b/test/litest.c @@ -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);