genlist: Initialized local variables and removed unnecessary local
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Sun, 9 Mar 2014 10:36:17 +0000 (19:36 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Sun, 9 Mar 2014 10:36:17 +0000 (19:36 +0900)
variable.

This fixes coverity CID 1191580 ~ 1191583

src/lib/elm_genlist.c

index 35691a9..0cfba4c 100644 (file)
@@ -7853,10 +7853,10 @@ _elm_genlist_focus_highlight_geometry_get(Eo *obj EINA_UNUSED, void *_pd, va_lis
    Evas_Coord *w = va_arg(*list, Evas_Coord *);
    Evas_Coord *h = va_arg(*list, Evas_Coord *);
    Eina_Bool *is_next = va_arg(*list, Eina_Bool *);
-   Evas_Coord ox, oy, oh, ow, item_x, item_y, item_w, item_h;
+   Evas_Coord ox, oy, oh, item_x = 0, item_y = 0, item_w = 0, item_h = 0;
 
    Elm_Genlist_Smart_Data *sd = _pd;
-   evas_object_geometry_get(obj, &ox, &oy, &ow, &oh);
+   evas_object_geometry_get(obj, &ox, &oy, NULL, &oh);
 
    if (is_next && *is_next)
      {