maybe fix some obscure notify bug
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 11 Dec 2011 16:19:03 +0000 (16:19 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 11 Dec 2011 16:19:03 +0000 (16:19 +0000)
SVN revision: 66098

src/modules/notification/e_mod_popup.c

index 180bf086a0e60163c6c2cbb95fa16fc775e37e03..2a4b55b85341dcc4e88e151245559d471b4436ec 100644 (file)
@@ -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;