use eina_streq for string comparison in e_zone_for_id_get()

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

crash--
devs/yoz/bryce
Mike Blumenkrantz 7 years ago
parent e82ec31175
commit 6ab8c48892
  1. 2
      src/bin/e_zone.c

@ -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;
}

Loading…
Cancel
Save