From 1a06e90a9412e699933fa6fc3e99c64e9ca72adf Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sun, 11 Dec 2011 16:19:03 +0000 Subject: [PATCH] maybe fix some obscure notify bug SVN revision: 66098 --- src/modules/notification/e_mod_popup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/notification/e_mod_popup.c b/src/modules/notification/e_mod_popup.c index 180bf086a0..2a4b55b853 100644 --- a/src/modules/notification/e_mod_popup.c +++ b/src/modules/notification/e_mod_popup.c @@ -256,7 +256,7 @@ _notification_popup_new(E_Notification *n) char buf[PATH_MAX]; const Eina_List *l, *screens; E_Screen *scr; - E_Zone *zone; + E_Zone *zone = NULL; if (popups_displayed > POPUP_LIMIT) return 0; popup = E_NEW(Popup_Data, 1); @@ -278,9 +278,9 @@ _notification_popup_new(E_Notification *n) EINA_SAFETY_ON_NULL_GOTO(scr, error); EINA_LIST_FOREACH(con->zones, l, zone) if ((int)zone->num == scr->screen) break; - if ((int)zone->num != scr->screen) goto error; + if (zone && ((int)zone->num != scr->screen)) goto error; } - else + if (!zone) zone = e_zone_current_get(con); popup->zone = zone; -- 2.34.1