The early exit path in evdev_device_compare_syspath() expects
udev_device_new to be initialized to NULL, but it wasn't.

Signed-off-by: Derek Foreman <[email protected]>
---
 src/evdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/evdev.c b/src/evdev.c
index 908a8ba..3782ac4 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1451,7 +1451,7 @@ static int
 evdev_device_compare_syspath(struct udev_device *udev_device, int fd)
 {
        struct udev *udev = udev_device_get_udev(udev_device);
-       struct udev_device *udev_device_new;
+       struct udev_device *udev_device_new = NULL;
        struct stat st;
        int rc = 1;
 
-- 
2.1.3

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to