summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-07-31 06:44:44 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-07-31 10:17:47 +0200
commit42d525e15b9ed3e8ad053def6de5fc167a98fbff (patch)
treeb652bfb7e85d5d82059b2b1e6ce6bc50bef1d90f /src/lib/evas
parent8d034f08e8322921b1b059cc2e93e10f7b0550f1 (diff)
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
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index b8541b3949..4c6fc865d8 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -7668,10 +7668,6 @@ _layout_setup(Ctxt *c, const Eo *eo_obj, Evas_Coord w, Evas_Coord h)
7668 { 7668 {
7669 c->fmt = _layout_format_push(c, o->main_fmt, NULL); 7669 c->fmt = _layout_format_push(c, o->main_fmt, NULL);
7670 } 7670 }
7671 if (!c->fmt)
7672 {
7673 return EINA_FALSE;
7674 }
7675 7671
7676 c->paragraphs = o->paragraphs; 7672 c->paragraphs = o->paragraphs;
7677 7673