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:
d935aa7
)
enlightenment crashing if accel filter is missing, applying NULL check
00/132700/2
author
Bhavi Dhingra
<b.dhingra@samsung.com>
Wed, 31 May 2017 09:37:28 +0000
(15:07 +0530)
committer
JengHyun Kang
<jhyuni.kang@samsung.com>
Wed, 7 Jun 2017 08:02:57 +0000
(17:02 +0900)
Change-Id: I028c2304e18fb7160a48b2edeeab204a1b89a624
Signed-off-by: Bhavi Dhingra <b.dhingra@samsung.com>
(cherry picked from commit
2fd9d3979bad4dc9a0541e6d7b5aa579574ad969
)
src/evdev.c
patch
|
blob
|
history
diff --git
a/src/evdev.c
b/src/evdev.c
index dae901c1335ca8bf7b543a54403281a2a405335c..2716b371e33f2bd9bc5f703b0e0fe8268649bd52 100644
(file)
--- a/
src/evdev.c
+++ b/
src/evdev.c
@@
-381,7
+381,12
@@
evdev_flush_pending_event(struct evdev_device *device, uint64_t time)
/* Apply pointer acceleration. */
motion.dx = dx_unaccel;
motion.dy = dy_unaccel;
- filter_dispatch(device->pointer.filter, &motion, device, time);
+ if(device->pointer.filter) {
+ filter_dispatch(device->pointer.filter, &motion, device, time);
+ } else {
+ log_bug_libinput(libinput,
+ "accel filter missing\n");
+ }
if (motion.dx == 0.0 && motion.dy == 0.0 &&
dx_unaccel == 0.0 && dy_unaccel == 0.0) {