forked from enlightenment/efl
edje_edit: Check return of _edje_part_description_find_byname
If this retruns NULL we would do a NULL deref some lines below. Better check. CID 1222458 1222457
This commit is contained in:
parent
ffd1031d2b
commit
debb51e5df
|
@ -6857,6 +6857,7 @@ edje_edit_state_text_text_source_set(Evas_Object *obj, const char *part, const c
|
||||||
if (source)
|
if (source)
|
||||||
{
|
{
|
||||||
spd = _edje_part_description_find_byname(eed, source, state, value);
|
spd = _edje_part_description_find_byname(eed, source, state, value);
|
||||||
|
if (!spd) return EINA_FALSE;
|
||||||
txt = (Edje_Part_Description_Text *) pd;
|
txt = (Edje_Part_Description_Text *) pd;
|
||||||
source_txt = (Edje_Part_Description_Text *) spd;
|
source_txt = (Edje_Part_Description_Text *) spd;
|
||||||
|
|
||||||
|
@ -6916,6 +6917,7 @@ edje_edit_state_text_source_set(Evas_Object *obj, const char *part, const char *
|
||||||
if (source)
|
if (source)
|
||||||
{
|
{
|
||||||
spd = _edje_part_description_find_byname(eed, source, state, value);
|
spd = _edje_part_description_find_byname(eed, source, state, value);
|
||||||
|
if (!spd) return EINA_FALSE;
|
||||||
txt = (Edje_Part_Description_Text *) pd;
|
txt = (Edje_Part_Description_Text *) pd;
|
||||||
source_style = (Edje_Part_Description_Text *) spd;
|
source_style = (Edje_Part_Description_Text *) spd;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue