summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-01-05 11:58:42 +1000
committerAdam Jackson <ajax@redhat.com>2018-01-22 14:17:58 -0500
commit7cec7fb7bc34ea857e2d40ad32ead8a328dbe1a1 (patch)
tree5918e1e05afcf4ac2d62c4e7f3336f4add642128 /config
parent16896d05a6a2a91fd53cf6af56ce5e79f6abb500 (diff)
config: fix NULL value detection for ID_INPUT being unset
Erroneous condition caused us to keep going with all devices that didn't have ID_INPUT set. Fixes: 5aad81445c8c3d6 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104382 Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit a309323328d9d6e0bf5d9ea1d75920e53b9beef3)
Diffstat (limited to 'config')
-rw-r--r--config/udev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/udev.c b/config/udev.c
index e198e8609..3a73189e2 100644
--- a/config/udev.c
+++ b/config/udev.c
@@ -135,7 +135,7 @@ device_added(struct udev_device *udev_device)
#endif
value = udev_device_get_property_value(udev_device, "ID_INPUT");
- if (value && !strcmp(value, "0")) {
+ if (!value || !strcmp(value, "0")) {
LogMessageVerb(X_INFO, 10,
"config/udev: ignoring device %s without "
"property ID_INPUT set\n", path);