From fb1815934fa7ced24192e628f38608d3ac51d165 Mon Sep 17 00:00:00 2001 From: Duna Oh Date: Tue, 20 Sep 2016 17:52:14 +0900 Subject: [PATCH] ecore_drm: fix crash if string is null Change-Id: Ief8df0e6af31592746a93c54d404adaf6d71be9d Signed-off-by: Duna Oh --- src/lib/ecore_drm/ecore_drm_evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_drm/ecore_drm_evdev.c b/src/lib/ecore_drm/ecore_drm_evdev.c index b922539..3ef7220 100644 --- a/src/lib/ecore_drm/ecore_drm_evdev.c +++ b/src/lib/ecore_drm/ecore_drm_evdev.c @@ -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; -- 2.7.4