From 93bebafa53e3991c16ef03c5a3615c9b0549fbe9 Mon Sep 17 00:00:00 2001 From: Tan Guanghua Date: Thu, 4 Dec 2014 10:31:42 +0800 Subject: [PATCH] sv001 fix crash when absinfo is nil --- src/evdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/evdev.c b/src/evdev.c index c2d10d7..86ee48a 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1650,6 +1650,9 @@ void evdev_device_calibrate(struct evdev_device *device, const float calibration[6]) { + if (device->abs.absinfo_x == NULL || device->abs.absinfo_y == NULL) + return; + struct matrix scale, translate, transform; -- 1.7.9.5