els_tooltip.c: Initialize px and py to zero
authorDaniel Willmann <d.willmann@samsung.com>
Tue, 11 Jun 2013 11:46:04 +0000 (12:46 +0100)
committerDaniel Willmann <d.willmann@samsung.com>
Tue, 11 Jun 2013 13:33:44 +0000 (14:33 +0100)
px and py might not be set if X support is not compiled in and
ecore_x_pointer_xy_get() is not called. In that case make sure they are
not used uninitialized.

Backport ec06d04b29454e1d1008525812bc43c4aa4c08ed

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
src/lib/els_tooltip.c

index 4c28b28d906f0738344817db9eeddc1429201dbe..677367b96a0b9a58f8eb4f3c5103e54cfbe69335 100644 (file)
@@ -262,7 +262,7 @@ _elm_tooltip_hide_anim_stop(Elm_Tooltip *tt)
 static void
 _elm_tooltip_reconfigure(Elm_Tooltip *tt)
 {
-   Evas_Coord ox, oy, ow, oh, px, py, tx, ty, tw, th, cw = 0, ch = 0;
+   Evas_Coord ox, oy, ow, oh, px = 0, py = 0, tx, ty, tw, th, cw = 0, ch = 0;
    Evas_Coord eminw, eminh, ominw, ominh;
    double rel_x, rel_y;
    Eina_Bool inside_eventarea;