Allow null strings

SVN revision: 12693
This commit is contained in:
handyande 2005-01-02 21:51:13 +00:00 committed by handyande
parent d5c0e791be
commit e3e9a48c9a
1 changed files with 1 additions and 3 deletions

View File

@ -564,9 +564,7 @@ ecore_config_typed_add(const char *key, void *val, int type)
if (!(e->key = strdup(key)))
goto ret_free_nte;
if (!val)
e->type = PT_NIL;
else if (ecore_config_typed_val(e, val, type) == ECORE_CONFIG_ERR_OOM)
if (ecore_config_typed_val(e, val, type) == ECORE_CONFIG_ERR_OOM)
goto ret_free_key;
e->next = t ? t->data : NULL;