forked from enlightenment/enlightenment
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:
parent
64870691bf
commit
e7d5c0aa89
|
@ -1720,7 +1720,7 @@ e_zone_for_id_get(const char *id)
|
||||||
|
|
||||||
EINA_LIST_FOREACH(e_comp->zones, l, zone)
|
EINA_LIST_FOREACH(e_comp->zones, l, zone)
|
||||||
{
|
{
|
||||||
if (strcmp(zone->randr2_id, id) == 0)
|
if (eina_streq(zone->randr2_id, id))
|
||||||
return zone;
|
return zone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue