eo: safety in string comparison

Avoid potential for Eo to crash if app manages to unset key
@fix
This commit is contained in:
Andy Williams 2016-11-28 00:08:58 +00:00
parent 3febd6a563
commit c5181470c1
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ _key_generic_get(const Eo *obj, Efl_Object_Data *pd, const char *key, Eo_Generic
if (!ext) return NULL;
EINA_INLIST_FOREACH(ext->generic_data, node)
{
if (!strcmp(node->key, key))
if (node->key && !strcmp(node->key, key))
{
if (node->d_type == d_type)
{