summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-19 16:04:56 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-19 16:05:34 +0200
commit4de4995fa27d6a8907983d2f450a5666823995b7 (patch)
tree85584f2da777f4c6edf25644a9881487b78363bd /src/lib/eolian
parent5428f26f7d08b03ce4e7963595d6f83f70d5957a (diff)
eolian: return NULL instead of EINA_FALSE on safety checks
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/database_function_api.c6
1 files 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 *
346eolian_function_return_c_type_get(const Eolian_Function *fid, 346eolian_function_return_c_type_get(const Eolian_Function *fid,
347 Eolian_Function_Type ftype) 347 Eolian_Function_Type ftype)
348{ 348{
349 EINA_SAFETY_ON_NULL_RETURN_VAL(fid, EINA_FALSE); 349 EINA_SAFETY_ON_NULL_RETURN_VAL(fid, NULL);
350 EINA_SAFETY_ON_FALSE_RETURN_VAL(ftype != EOLIAN_UNRESOLVED, EINA_FALSE); 350 EINA_SAFETY_ON_FALSE_RETURN_VAL(ftype != EOLIAN_UNRESOLVED, NULL);
351 EINA_SAFETY_ON_FALSE_RETURN_VAL(ftype != EOLIAN_PROPERTY, EINA_FALSE); 351 EINA_SAFETY_ON_FALSE_RETURN_VAL(ftype != EOLIAN_PROPERTY, NULL);
352 const Eolian_Type *tp = NULL; 352 const Eolian_Type *tp = NULL;
353 Eina_Bool by_ref = EINA_FALSE; 353 Eina_Bool by_ref = EINA_FALSE;
354 switch (ftype) 354 switch (ftype)