forked from enlightenment/enlightenment
gadget runner - check ptr return before deref
fix CID 1403925
This commit is contained in:
parent
c9356a3f8c
commit
8c76ff3e32
|
@ -913,7 +913,7 @@ runner_create(Evas_Object *parent, int *id, E_Gadget_Site_Orient orient)
|
|||
|
||||
if (orient) return NULL;
|
||||
if (*id > 0) ci = _conf_item_get(id);
|
||||
if ((*id < 0) || ci->inst)
|
||||
if ((*id < 0) || ((ci) && (ci->inst)))
|
||||
{
|
||||
obj = elm_image_add(parent);
|
||||
elm_image_file_set(obj, e_theme_edje_file_get(NULL, "e/icons/modules-launcher"), "e/icons/modules-launcher");
|
||||
|
|
Loading…
Reference in New Issue