fix null dereference reported by clang, patch by Luis Felipe.

SVN revision: 38685
This commit is contained in:
Gustavo Sverzut Barbieri 2009-01-21 19:05:11 +00:00
parent 8355545bfe
commit e22296968f
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ ecore_config_typed_add(const char *key, const void *val, int type)
if (!(e = calloc(1, sizeof(Ecore_Config_Prop)))) if (!(e = calloc(1, sizeof(Ecore_Config_Prop))))
{ {
error = ECORE_CONFIG_ERR_OOM; return ECORE_CONFIG_ERR_OOM;
} }
else if (!(e->key = strdup(key))) else if (!(e->key = strdup(key)))
{ {