forked from enlightenment/efl
evas_textblock: remove logically dead code
Since `c->fmt` is allocated and dereferenced in `_layoutformat_push`, if `c->fmt` is NULL, this causes a crash before checking for NULL. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D12076
This commit is contained in:
parent
8d034f08e8
commit
42d525e15b
|
@ -7668,10 +7668,6 @@ _layout_setup(Ctxt *c, const Eo *eo_obj, Evas_Coord w, Evas_Coord h)
|
|||
{
|
||||
c->fmt = _layout_format_push(c, o->main_fmt, NULL);
|
||||
}
|
||||
if (!c->fmt)
|
||||
{
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
c->paragraphs = o->paragraphs;
|
||||
|
||||
|
|
Loading…
Reference in New Issue