wl_drm: fix null pointer dereference 97/49297/2
authorBoram Park <boram1288.park@samsung.com>
Mon, 12 Oct 2015 10:56:46 +0000 (19:56 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 12 Oct 2015 11:09:59 +0000 (04:09 -0700)
Change-Id: I5fc150a379515062d8a358a6ad2671ef8cde738f

src/modules/wl_drm/e_mod_main.c

index 15012b7..ef4ac3b 100644 (file)
@@ -134,6 +134,8 @@ e_modapi_init(E_Module *m)
    if (!(comp = e_comp))
      {
         comp = e_comp_new();
+        EINA_SAFETY_ON_NULL_RETURN_VAL(comp, NULL);
+
         comp->comp_type = E_PIXMAP_TYPE_WL;
      }