elementary/naviframe - missing the initlialization.
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 13 Oct 2011 07:52:01 +0000 (07:52 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 13 Oct 2011 07:52:01 +0000 (07:52 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64044 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elc_naviframe.c

index b8d6d63..8bb3c17 100644 (file)
@@ -880,7 +880,7 @@ EAPI Evas_Object *
 elm_naviframe_item_pop(Evas_Object *obj)
 {
    ELM_CHECK_WIDTYPE(obj, widtype) NULL;
-   Elm_Naviframe_Item *it, *prev_it;
+   Elm_Naviframe_Item *it, *prev_it = NULL;
    Widget_Data *wd;
    Evas_Object *content = NULL;
 
@@ -892,8 +892,9 @@ elm_naviframe_item_pop(Evas_Object *obj)
    if (wd->preserve)
      content = it->content;
 
-   prev_it = EINA_INLIST_CONTAINER_GET(wd->stack->last->prev,
-                                       Elm_Naviframe_Item);
+   if (wd->stack->last->prev)
+     prev_it = EINA_INLIST_CONTAINER_GET(wd->stack->last->prev,
+                                         Elm_Naviframe_Item);
    if (prev_it)
      {
         if (wd->freeze_events)