edje: Edje_Edit - make sure we don't use an not initialized value.

Should close CID 1181885 and CID 1181888.
This commit is contained in:
Cedric BAIL 2014-02-20 12:21:55 +09:00
parent 0e5d3f9b98
commit 4b2708a502
1 changed files with 2 additions and 1 deletions

View File

@ -2193,7 +2193,8 @@ _edje_edit_real_part_add(Evas_Object *obj, const char *name, Edje_Part_Type type
if (_edje_real_part_get(ed, name))
return EINA_FALSE;
if (ed->file)
if (ed->file) return EINA_FALSE;
ce = eina_hash_find(ed->file->collection, ed->group);
/* Alloc Edje_Part or return */