From: Mike Blumenkrantz Date: Sun, 11 Dec 2011 16:19:03 +0000 (+0000) Subject: maybe fix some obscure notify bug X-Git-Tag: submit/efl/20131021.015651~5303 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a06e90a9412e699933fa6fc3e99c64e9ca72adf;p=platform%2Fupstream%2Fenlightenment.git maybe fix some obscure notify bug SVN revision: 66098 --- 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;