edje_cc : remove potential NULL dereferencing

Summary: this patch removes potential NULL deferencing in edje_cc

Reviewers: jsuya, Hermet

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11326
This commit is contained in:
Wonki Kim 2020-02-12 16:47:00 +09:00 committed by Hermet Park
parent 69352e7abe
commit 7417436526
1 changed files with 1 additions and 1 deletions

View File

@ -11730,7 +11730,7 @@ st_collections_group_parts_part_description_text_fit_size_array(void)
for (n = 0, argc = get_arg_count(); n < argc; n++)
{
unsigned int *value = malloc(sizeof(unsigned int));
*value = (unsigned int) parse_int(n);
if (value) *value = (unsigned int) parse_int(n);
ed->text.fit_size_array = eina_list_append(ed->text.fit_size_array, value);
}
}