From: Inhong Han Date: Fri, 11 Aug 2023 06:34:39 +0000 (+0900) Subject: Fix issue detected by static analysis tool X-Git-Tag: accepted/tizen/unified/20230814.121022^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_8.0_unified;p=platform%2Fupstream%2Flibinput.git Fix issue detected by static analysis tool Change-Id: I8278954b483c0f7b848c3aa3468d14790605c147 --- diff --git a/src/evdev.c b/src/evdev.c index 645ccfca..dc0a97f2 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -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);