ecore_evas: avoid using non initialized value for cursor position in X backend.
authorCedric Bail <cedric.bail@free.fr>
Thu, 17 Apr 2014 19:16:12 +0000 (21:16 +0200)
committerCedric Bail <cedric.bail@free.fr>
Thu, 17 Apr 2014 19:16:12 +0000 (21:16 +0200)
CID 1195445.

src/modules/ecore_evas/engines/x/ecore_evas_x.c

index 97086cf..0de4dd6 100644 (file)
@@ -2970,7 +2970,7 @@ _ecore_evas_object_cursor_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj
 static void
 _ecore_evas_x_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int hot_x, int hot_y)
 {
-   int x, y;
+   int x = 0, y = 0;
    Evas_Object *old;
 
    old = ee->prop.cursor.object;