forked from enlightenment/efl
evas_vg_container: return NULL in evas_vg_container_add when the parent of container is NULL
Summary: evas_vg_container should return NULL when the parent is NULL because the function does not allot NULL parent @fix Reviewers: kimcinoo, jsuya, Hermet Reviewed By: kimcinoo Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11867
This commit is contained in:
parent
e81c326088
commit
c3adf72aa8
|
@ -493,7 +493,11 @@ evas_vg_container_add(Evas_Object *parent)
|
|||
{
|
||||
/* Warn it because the usage has been changed.
|
||||
We can remove this message after v1.21. */
|
||||
if (!parent) CRI("Efl_VG Container doesn't allow null parent!");
|
||||
if (!parent)
|
||||
{
|
||||
ERR("Efl_VG Container doesn't allow null parent!");
|
||||
return NULL;
|
||||
}
|
||||
return efl_add(MY_CLASS, parent);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue