forked from enlightenment/efl
eolian: fix null serialization
This commit is contained in:
parent
bcf5f1b1dd
commit
7ef5c78792
|
@ -540,6 +540,8 @@ database_expr_eval(const Eolian_Expression *expr, Eolian_Expression_Mask mask,
|
|||
*outval = eina_value_new(EINA_VALUE_TYPE_UCHAR);
|
||||
eina_value_set(*outval, out.value.b);
|
||||
break;
|
||||
case EOLIAN_EXPR_NULL:
|
||||
break;
|
||||
default:
|
||||
return EOLIAN_EXPR_UNKNOWN;
|
||||
}
|
||||
|
|
|
@ -144,7 +144,8 @@ EAPI Eina_Stringshare *
|
|||
eolian_expression_value_to_literal(const Eina_Value *v,
|
||||
Eolian_Expression_Type etp)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(v, NULL);
|
||||
if (etp != EOLIAN_EXPR_NULL)
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(v, NULL);
|
||||
switch (etp)
|
||||
{
|
||||
case EOLIAN_EXPR_BOOL:
|
||||
|
|
Loading…
Reference in New Issue