summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaehyub Kim <taehyub.kim@samsung.com>2020-05-22 12:23:46 +0900
committerShinwoo Kim <cinoo.kim@samsung.com>2020-05-22 12:23:46 +0900
commit375a060a07b421480d6389ce62e7ac1e505155cb (patch)
tree7da3a2cda6049c9a70dc6e7d5e7e32c00265a7b2
parenta928dba502776e7561b2de7a3ab606f68e31de07 (diff)
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
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_container.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_vg_container.c b/src/lib/evas/canvas/efl_canvas_vg_container.c
index 37b59405c3..61bd74e7c3 100644
--- a/src/lib/evas/canvas/efl_canvas_vg_container.c
+++ b/src/lib/evas/canvas/efl_canvas_vg_container.c
@@ -493,7 +493,11 @@ evas_vg_container_add(Evas_Object *parent)
493{ 493{
494 /* Warn it because the usage has been changed. 494 /* Warn it because the usage has been changed.
495 We can remove this message after v1.21. */ 495 We can remove this message after v1.21. */
496 if (!parent) CRI("Efl_VG Container doesn't allow null parent!"); 496 if (!parent)
497 {
498 ERR("Efl_VG Container doesn't allow null parent!");
499 return NULL;
500 }
497 return efl_add(MY_CLASS, parent); 501 return efl_add(MY_CLASS, parent);
498} 502}
499 503