forked from enlightenment/efl
eo: safety in string comparison
Avoid potential for Eo to crash if app manages to unset key @fix
This commit is contained in:
parent
3febd6a563
commit
c5181470c1
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue