From: duna.oh Date: Fri, 30 Aug 2024 09:41:01 +0000 (+0900) Subject: udev-seat: Replace strncmp with streq for safety X-Git-Tag: accepted/tizen/unified/20240902.161310^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified_dev;p=platform%2Fupstream%2Flibinput.git udev-seat: Replace strncmp with streq for safety Change-Id: I80c8e93473571e99e34529ead31bd557a8d20495 --- diff --git a/src/udev-seat.c b/src/udev-seat.c index 52013e39..8da98089 100644 --- a/src/udev-seat.c +++ b/src/udev-seat.c @@ -341,7 +341,7 @@ udev_input_enable(struct libinput *libinput) } /* Skip only when the event source of udev monitor has been set as "udev" or null. */ - if (!env || (0 == strncmp("udev", env, 4))) { + if (!env || strneq("udev", env, 4)) { _udev_monitor_skip_unconfigured_device = 1; log_info(libinput, "will skip addition of unconfigured devices. (env=%s)\n", env ? env : "null"); }