Fix issue detected by static analysis tool 75/297175/1 accepted/tizen_8.0_unified tizen_8.0 tizen_bkup_20231204 accepted/tizen/8.0/unified/20231005.095040 accepted/tizen/unified/20230814.121022 tizen_8.0_m2_release
authorInhong Han <inhong1.han@samsung.com>
Fri, 11 Aug 2023 06:34:39 +0000 (15:34 +0900)
committerInhong Han <inhong1.han@samsung.com>
Fri, 11 Aug 2023 06:34:39 +0000 (15:34 +0900)
Change-Id: I8278954b483c0f7b848c3aa3468d14790605c147

src/evdev.c

index 645ccfcafb83a9ee16a108db3a17a3c664c1fff4..dc0a97f2c019221eed0d7cd9a9e11a290af2c199 100644 (file)
@@ -2487,7 +2487,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);