e_plane: add null checking 54/142654/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 7 Aug 2017 02:57:51 +0000 (11:57 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 7 Aug 2017 02:57:55 +0000 (11:57 +0900)
Change-Id: I8918bd1a3c85ec3f1a5d67dae072f9d9afbf66f7
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/bin/e_plane.c

index 2692f29787b16831e4da487e060a057185545d05..8c0a1df18e3d37a0f03afb463b94d01f156c7960 100644 (file)
@@ -86,6 +86,8 @@ _get_tbm_surface_queue(E_Comp *e_comp)
    tbm_surface_queue_h tbm_queue = NULL;
 
    name = ecore_evas_engine_name_get(e_comp->ee);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL);
+
    if (!strcmp(name, "gl_drm"))
      {
         Evas_Engine_Info_GL_Drm *info;