summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBowon Ryu <bowon.ryu@samsung.com>2020-08-05 15:09:05 +0900
committerJunsuChoi <jsuya.choi@samsung.com>2020-08-05 15:09:05 +0900
commit39e9740fca914a360c174cda88403f511181c79b (patch)
tree3781389a9595e1734bfb0e88eb7d3e476e171e08
parentbab3f870b8150e05cf2b778e67b1f6be326874a7 (diff)
edje_edit: add null check for return of eina_hash_find
Summary: to prevent null pointer dereference Test Plan: N/A Reviewers: cedric, jsuya Reviewed By: jsuya Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12094
-rw-r--r--src/lib/edje/edje_edit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 1dad199055..b9ebf99926 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -6292,6 +6292,7 @@ _edje_edit_state_alloc(int type, Edje *ed)
6292 Edje_Part_Description_Common *pd = NULL; 6292 Edje_Part_Description_Common *pd = NULL;
6293 6293
6294 ce = eina_hash_find(ed->file->collection, ed->group); 6294 ce = eina_hash_find(ed->file->collection, ed->group);
6295 if (!ce) return NULL;
6295 6296
6296 switch (type) 6297 switch (type)
6297 { 6298 {