summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_evdev.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-04-24 12:51:34 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-04-24 12:53:01 -0400
commit3d71a10891c31de9c667f15f8f37371a5664f759 (patch)
treecc2ff822e9ffa1636ad284d6b3beb8c74146cac6 /src/lib/ecore_drm/ecore_drm_evdev.c
parenta01b2434054db1f7de9087634227c52abb48e291 (diff)
ecore-drm: add safety checks to all EAPI functions
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm/ecore_drm_evdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_evdev.c b/src/lib/ecore_drm/ecore_drm_evdev.c
index 04275fdb70..f56e372453 100644
--- a/src/lib/ecore_drm/ecore_drm_evdev.c
+++ b/src/lib/ecore_drm/ecore_drm_evdev.c
@@ -879,7 +879,8 @@ ecore_drm_inputs_device_axis_size_set(Ecore_Drm_Evdev *edev, int w, int h)
879 const char *vals; 879 const char *vals;
880 enum libinput_config_status status; 880 enum libinput_config_status status;
881 881
882 if ((w == 0) || (h == 0)) return; 882 EINA_SAFETY_ON_NULL_RETURN(edev);
883 EINA_SAFETY_ON_TRUE_RETURN((w == 0) || (h == 0));
883 884
884 if ((!libinput_device_config_calibration_has_matrix(edev->device)) || 885 if ((!libinput_device_config_calibration_has_matrix(edev->device)) ||
885 (libinput_device_config_calibration_get_default_matrix(edev->device, cal) != 0)) 886 (libinput_device_config_calibration_get_default_matrix(edev->device, cal) != 0))