summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-04-22 10:51:25 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-04-22 11:33:04 +0900
commit4ba0227bf4903729cb79ff547cced9c62e80b97e (patch)
tree949c3837c2bd633ca00e22a932c5bfd9b4be3c72
parent39e380f7542b6f409bae71d66531b88b6b42f590 (diff)
downloadefl-4ba0227bf4903729cb79ff547cced9c62e80b97e.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!).
-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 97d31b2f6b..7de630d70b 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;
}