projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc908b6
)
test: fix an always-true check for udev properties
author
Peter Hutterer
<peter.hutterer@who-t.net>
Sun, 7 Jul 2019 23:53:49 +0000
(09:53 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Sun, 7 Jul 2019 23:53:49 +0000
(09:53 +1000)
Found by coverity
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c
patch
|
blob
|
history
diff --git
a/test/litest.c
b/test/litest.c
index
a9ec9a9
..
76da2c5
100644
(file)
--- a/
test/litest.c
+++ b/
test/litest.c
@@
-664,7
+664,7
@@
litest_init_device_udev_rules(struct litest_test_device *dev, FILE *f)
const struct key_value_str *kv;
static int count;
- if (
!dev->udev_properties
)
+ if (
dev->udev_properties[0].key == NULL
)
return;
count++;