eolian: enum validation fix

This commit is contained in:
Daniel Kolesa 2014-09-02 12:39:38 +01:00
parent 09a517812f
commit 231b2f3044
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@ static Eina_Bool
_ef_map_cb(const Eina_Hash *hash EINA_UNUSED, const void *key EINA_UNUSED,
const Eolian_Enum_Type_Field *ef, Eina_Bool *success)
{
*success = _validate_expr(ef->value, NULL, EOLIAN_MASK_INT);
if (ef->value)
*success = _validate_expr(ef->value, NULL, EOLIAN_MASK_INT);
else
*success = EINA_TRUE;
return *success;
}