oops! fix bugs hinted by compiler warnings!
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 14 Nov 2008 21:33:10 +0000 (21:33 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 14 Nov 2008 21:33:10 +0000 (21:33 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@37635 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_box.c

index f55d80b..7e06a6a 100644 (file)
@@ -287,7 +287,7 @@ _evas_object_box_remove_at_default(Evas_Object *o, Evas_Object_Box_Data *priv, u
 
    for (l = priv->children, i = 0; l != NULL; l = l->next, i++)
      {
-       Evas_Object_Box_Option *opt;
+       Evas_Object_Box_Option *opt = l->data;
         Evas_Object *obj = opt->obj;
 
         if (i == pos)
@@ -405,8 +405,8 @@ _evas_object_box_smart_class_new(void)
 Evas_Object *
 evas_object_box_add(Evas *evas)
 {
+   static Evas_Smart *smart = NULL;
    Evas_Object *o;
-   Evas_Smart *smart;
 
    if (!smart)
      smart = _evas_object_box_smart_class_new();