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 e82ec31175
commit 6ab8c48892
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;
}