ecore-drm: Fix _device_add function to check input

Summary:
Add condition to check if input is NULL in _device_add function

@fix

Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1493
This commit is contained in:
vivek 2014-09-26 09:04:24 -04:00 committed by Chris Michael
parent 4483ef20d3
commit 4d54525d47
1 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,8 @@ _device_add(Ecore_Drm_Input *input, const char *device)
Ecore_Drm_Device_Open_Data *data;
const char *devseat, *wlseat;
if (!input) return EINA_FALSE;
DBG("Add Input Device: %s", device);
if (!(devseat = eeze_udev_syspath_get_property(device, "ID_SEAT")))