q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4de4995fa27d6a8907983d2f450a5666823995b7

commit 4de4995fa27d6a8907983d2f450a5666823995b7
Author: Daniel Kolesa <d.kol...@samsung.com>
Date:   Thu Sep 19 16:04:56 2019 +0200

    eolian: return NULL instead of EINA_FALSE on safety checks
---
 src/lib/eolian/database_function_api.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/eolian/database_function_api.c 
b/src/lib/eolian/database_function_api.c
index fd78164892..ca9454449b 100644
--- a/src/lib/eolian/database_function_api.c
+++ b/src/lib/eolian/database_function_api.c
@@ -346,9 +346,9 @@ EAPI Eina_Stringshare *
 eolian_function_return_c_type_get(const Eolian_Function *fid,
                                   Eolian_Function_Type ftype)
 {
-   EINA_SAFETY_ON_NULL_RETURN_VAL(fid, EINA_FALSE);
-   EINA_SAFETY_ON_FALSE_RETURN_VAL(ftype != EOLIAN_UNRESOLVED, EINA_FALSE);
-   EINA_SAFETY_ON_FALSE_RETURN_VAL(ftype != EOLIAN_PROPERTY, EINA_FALSE);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(fid, NULL);
+   EINA_SAFETY_ON_FALSE_RETURN_VAL(ftype != EOLIAN_UNRESOLVED, NULL);
+   EINA_SAFETY_ON_FALSE_RETURN_VAL(ftype != EOLIAN_PROPERTY, NULL);
    const Eolian_Type *tp = NULL;
    Eina_Bool by_ref = EINA_FALSE;
    switch (ftype)

-- 


Reply via email to