evas: Fix incorrect expression in efl_canvas_surface_x11
authorChris Michael <cpmichael@osg.samsung.com>
Wed, 16 Mar 2016 13:24:20 +0000 (09:24 -0400)
committerChris Michael <cpmichael@osg.samsung.com>
Wed, 16 Mar 2016 13:24:20 +0000 (09:24 -0400)
This patch fixes an issue detected by Coverity where 'obj' is written
twice with the same value

CID1353363

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
src/lib/evas/canvas/efl_canvas_surface_x11.c

index 1aab748..5796b9e 100644 (file)
@@ -32,7 +32,9 @@ _efl_canvas_surface_x11_eo_base_constructor(Eo *eo, Efl_Canvas_Surface_X11_Data
 EOLIAN static void
 _efl_canvas_surface_x11_eo_base_destructor(Eo *eo, Efl_Canvas_Surface_X11_Data *pd)
 {
-   Evas_Object_Protected_Data *obj = obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
+   Evas_Object_Protected_Data *obj;
+
+   obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
 
    ENFN->image_native_shutdown(ENDT, EVAS_NATIVE_SURFACE_X11);
    eo_data_unref(eo, pd->base);