eldbus: production code inside Eina Safety Check assert.

Summary: Eina Safety Checks assert macros don't do anything (no-op) if EINA_SAFETY_CHECKS is undefined.

@fix

Reviewers: felipealmeida, larryolj, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1926

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Guilherme Lepsch 2015-02-05 11:23:41 +01:00 committed by Cedric BAIL
parent dad7df18b8
commit 629b5e3d2b
1 changed files with 2 additions and 3 deletions

View File

@ -45,9 +45,8 @@ static Eina_Bool
_array_append(const char *type, const Eina_Value *value_array, Eldbus_Message_Iter *iter)
{
Eldbus_Message_Iter *array;
EINA_SAFETY_ON_FALSE_RETURN_VAL(
eldbus_message_iter_arguments_append(iter, type, &array), EINA_FALSE);
Eina_Bool ok = eldbus_message_iter_arguments_append(iter, type, &array);
EINA_SAFETY_ON_FALSE_RETURN_VAL(ok, EINA_FALSE);
DBG("array of type %c", type[1]);
switch (type[1])
{