Elementary els_scroller: Fixed a valgrind uinitialised_value error.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 17 Feb 2011 09:21:25 +0000 (09:21 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 17 Feb 2011 09:21:25 +0000 (09:21 +0000)
Happens when pan_get doesn't set the coords.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@57117 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/els_scroller.c

index 3917928..b9e7646 100644 (file)
@@ -911,7 +911,7 @@ bounce_eval(Smart_Data *sd)
 void
 elm_smart_scroller_child_pos_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
 {
-   Evas_Coord mx = 0, my = 0, px, py, minx = 0, miny = 0;
+   Evas_Coord mx = 0, my = 0, px = 0, py = 0, minx = 0, miny = 0;
    double vx, vy;
 
    API_ENTRY return;