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:
b43dc88
)
check return value for libudev/udev_device_get_action
author
weizhixiang
<1138871845@qq.com>
Wed, 6 Jan 2021 09:46:14 +0000
(17:46 +0800)
committer
weizhixiang
<1138871845@qq.com>
Wed, 6 Jan 2021 09:46:14 +0000
(17:46 +0800)
Signed-off-by: weizhixiang <1138871845@qq.com>
test/litest.c
patch
|
blob
|
history
diff --git
a/test/litest.c
b/test/litest.c
index ac8cda9688e7f47535cca645550d44b21022d5d2..8ac6e260348dc17bc2d93e20ea7da6a9a02dd1a0 100644
(file)
--- a/
test/litest.c
+++ b/
test/litest.c
@@
-1895,7
+1895,7
@@
udev_wait_for_device_event(struct udev_monitor *udev_monitor,
udev_device = udev_monitor_receive_device(udev_monitor);
litest_assert_notnull(udev_device);
udev_action = udev_device_get_action(udev_device);
- if (!streq(udev_action, udev_event)) {
+ if (!
udev_action || !
streq(udev_action, udev_event)) {
udev_device_unref(udev_device);
continue;
}