From 7c1679550b88744edd6b6ff04b8b9afa277f358b Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Sat, 10 May 2014 12:08:45 +0200 Subject: [PATCH] evas: fix uninitialized value usage in Evas_3D. This code look suspiciously similar to src/lib/evas/canvas/evas_3d_mesh.c line 682. --- src/modules/evas/engines/gl_common/evas_gl_3d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/evas/engines/gl_common/evas_gl_3d.c b/src/modules/evas/engines/gl_common/evas_gl_3d.c index bd4d53b1d0..1265efe273 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_3d.c +++ b/src/modules/evas/engines/gl_common/evas_gl_3d.c @@ -608,7 +608,7 @@ _mesh_frame_find(Evas_3D_Mesh *mesh, int frame, Eina_List **l, Eina_List **r) { Eina_List *left, *right; - Evas_3D_Mesh_Frame *f0, *f1; + Evas_3D_Mesh_Frame *f0 = NULL, *f1; Evas_3D_Mesh_Data *pdmesh = eo_data_scope_get(mesh, EVAS_3D_MESH_CLASS); left = pdmesh->frames; @@ -628,7 +628,7 @@ _mesh_frame_find(Evas_3D_Mesh *mesh, int frame, if (right == NULL) { - if (frame <= f0->frame) + if (f0 && frame <= f0->frame) { *l = NULL; *r = left; -- 2.34.1