mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 12:28:10 +02:00
test: fix an always-true check for udev properties
Found by coverity Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
cc908b68a9
commit
734ada5e94
1 changed files with 1 additions and 1 deletions
|
|
@ -664,7 +664,7 @@ litest_init_device_udev_rules(struct litest_test_device *dev, FILE *f)
|
||||||
const struct key_value_str *kv;
|
const struct key_value_str *kv;
|
||||||
static int count;
|
static int count;
|
||||||
|
|
||||||
if (!dev->udev_properties)
|
if (dev->udev_properties[0].key == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue