use eina_streq for string comparison in e_zone_for_id_get()

zone->randr2_id is not guaranteed to be non-null

crash--
This commit is contained in:
Mike Blumenkrantz 2016-10-29 10:48:15 -04:00
parent 64870691bf
commit e7d5c0aa89
1 changed files with 1 additions and 1 deletions

View File

@ -1720,7 +1720,7 @@ e_zone_for_id_get(const char *id)
EINA_LIST_FOREACH(e_comp->zones, l, zone)
{
if (strcmp(zone->randr2_id, id) == 0)
if (eina_streq(zone->randr2_id, id))
return zone;
}