From 6ab8c48892eb7f79d10bef2c315f04dd16ef511e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sat, 29 Oct 2016 10:48:15 -0400 Subject: [PATCH] use eina_streq for string comparison in e_zone_for_id_get() zone->randr2_id is not guaranteed to be non-null crash-- --- src/bin/e_zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c index 3d530ec85..d196d177e 100644 --- a/src/bin/e_zone.c +++ b/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; }