Fix issue detected by static analysis tool
authorInhong Han <inhong1.han@samsung.com>
Fri, 11 Aug 2023 06:34:39 +0000 (15:34 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 4 Feb 2025 10:03:45 +0000 (19:03 +0900)
Change-Id: I8278954b483c0f7b848c3aa3468d14790605c147

src/evdev.c

index c4a18bde83c6338681812d5e601488a708e41de8..fb1f5669d209aa867233627297d200021d588053 100644 (file)
@@ -2481,7 +2481,7 @@ evdev_device_create(struct libinput_seat *seat,
 
 #ifdef HAVE_INPUT_SET_DEFAULT_PROPERTY
        if (input_set_default_property(udev_device) < 0)
-               return NULL;
+               goto err;
 #endif
        devnode = udev_device_get_devnode(udev_device);