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/20250205.095548~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=233f29b9cc0bd552ba401f7b93f17676e7af0eff;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"); }