summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-04-22 10:51:25 +0900
committerJaehwan Kim <jae.hwan.kim@samsung.com>2015-04-28 13:54:08 +0900
commit09b566fc9330ae2dfe54a34806c39991b1da80bb (patch)
tree7ff5f7dd01c8a0e8b3d866068a59176e81adb193
parent1c07d71155f55d5ef65c4182518d6c004c9ec84f (diff)
downloadefl-09b566fc9330ae2dfe54a34806c39991b1da80bb.tar.gz
Edje smart: Add NULL safety
This case actually happens with E. It's invalid but still happening, and because Eo doesn't actually check the parent (or its type) fully, an invalid, non-NULL object was returned. See T2336 (this is not fixing the root cause!). Change-Id: I800606d2f6009ba6c9b128b3cd75ac73a730aeda origin: upstream
-rw-r--r--src/lib/edje/edje_smart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index 332b9586c9..0a64662d20 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -19,6 +19,7 @@ EAPI Evas_Object *
edje_object_add(Evas *evas)
{
Evas_Object *e;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(evas, NULL);
e = eo_add(MY_CLASS, evas);
return e;
}