summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-02-12 16:45:40 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-12 16:45:40 +0900
commit69352e7abe36e8241b78f75771d2e397e36aac97 (patch)
treed15af15e9bc5034b5b10e1fdaed9464fddc9a36e
parent2f852c92e87ba07df0332405e65ecaa00d64a6e5 (diff)
efl_ui_position_manager_list: add NULL check for memory allocation
Reviewers: Jaehyun_Cho, Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11312
-rw-r--r--src/lib/elementary/efl_ui_position_manager_list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_position_manager_list.c b/src/lib/elementary/efl_ui_position_manager_list.c
index 6424b4b..dd90b12 100644
--- a/src/lib/elementary/efl_ui_position_manager_list.c
+++ b/src/lib/elementary/efl_ui_position_manager_list.c
@@ -69,6 +69,7 @@ cache_require(Eo *obj EINA_UNUSED, Efl_Ui_Position_Manager_List_Data *pd)
69 } 69 }
70 70
71 pd->size_cache = calloc(pd->size + 1, sizeof(int)); 71 pd->size_cache = calloc(pd->size + 1, sizeof(int));
72 if (!pd->size_cache) return;
72 pd->size_cache[0] = 0; 73 pd->size_cache[0] = 0;
73 pd->maximum_min_size = 0; 74 pd->maximum_min_size = 0;
74 75