ecore_drm: fix crash if string is null 99/88699/1
authorDuna Oh <duna.oh@samsung.com>
Tue, 20 Sep 2016 08:52:14 +0000 (17:52 +0900)
committerDuna Oh <duna.oh@samsung.com>
Tue, 20 Sep 2016 08:52:14 +0000 (17:52 +0900)
Change-Id: Ief8df0e6af31592746a93c54d404adaf6d71be9d
Signed-off-by: Duna Oh <duna.oh@samsung.com>
src/lib/ecore_drm/ecore_drm_evdev.c

index b922539..3ef7220 100644 (file)
@@ -733,7 +733,7 @@ _ecore_drm_evdev_device_create(Ecore_Drm_Seat *seat, struct libinput_device *dev
         EINA_LIST_FOREACH(devices, l, dev)
           {
              name = eeze_udev_syspath_get_devname(dev);
-             if (strstr(name, edev->path))
+             if (name && strstr(name, edev->path))
                {
                   eina_stringshare_replace(&edev->path, eeze_udev_syspath_get_devpath(dev));
                   break;