ecore_evas_wayland_common: pointer ee can be null.(svace:24115) 31/88631/1
authorJi-Youn Park <jy0703.park@samsung.com>
Tue, 20 Sep 2016 05:14:59 +0000 (13:44 +0830)
committerJi-Youn Park <jy0703.park@samsung.com>
Tue, 20 Sep 2016 05:14:59 +0000 (13:44 +0830)
Pointer 'ee' which was dereferenced at ecore_evas_wayland_common.c:1472
is compared to NULL value at ecore_evas_wayland_common.c:1475.

Change-Id: I70b7708ef8f4e31429ce4bfaae999214e7a7b36c

src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index b54bdf1..8ab9062 100755 (executable)
@@ -1473,10 +1473,11 @@ void
 _ecore_evas_wl_common_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int hot_x, int hot_y)
 {
    int x, y, fx, fy;
-   Ecore_Evas_Engine_Wl_Data *wdata = ee->engine.data;
+   Ecore_Evas_Engine_Wl_Data *wdata;
    Evas_Object *old;
 
    if (!ee) return;
+   wdata = ee->engine.data;
    old = ee->prop.cursor.object;
    if (obj == NULL)
      {