discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=46f546c43ea808b3f58f6aa11f174e1cf148a355

commit 46f546c43ea808b3f58f6aa11f174e1cf148a355
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Jul 2 14:18:06 2015 -0400

    eina: don't return NULL silently when creating new tilers
---
 src/lib/eina/eina_tiler.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/eina/eina_tiler.c b/src/lib/eina/eina_tiler.c
index 32833e9..47de92d 100644
--- a/src/lib/eina/eina_tiler.c
+++ b/src/lib/eina/eina_tiler.c
@@ -1140,8 +1140,7 @@ EAPI Eina_Tiler *eina_tiler_new(int w, int h)
 {
    Eina_Tiler *t;
 
-   if ((w <= 0) || (h <= 0))
-     return NULL;
+   EINA_SAFETY_ON_TRUE_RETURN_VAL((w <= 0) || (h <= 0), NULL);
 
    t = calloc(1, sizeof(Eina_Tiler));
    t->last.add.w = -1;

-- 


Reply via email to