cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5f908de18d153fc4eea68f349f31834a3350b5a7

commit 5f908de18d153fc4eea68f349f31834a3350b5a7
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Thu Mar 17 16:12:51 2016 -0700

    evas: fix access to possibility undefined function.
---
 src/lib/evas/canvas/evas_object_image.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/evas/canvas/evas_object_image.c 
b/src/lib/evas/canvas/evas_object_image.c
index 2320f6f..097c04f 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -3271,7 +3271,8 @@ _evas_image_efl_gfx_buffer_buffer_get(Eo *eo_obj, 
Evas_Image_Data *o,
 
    // FIXME: length needs to be properly checked with the engine
    // as we just ignore l,r,t,b here
-   ENFN->image_stride_get(ENDT, o->engine_data, &stride);
+   if (ENFN->image_stride_get)
+     ENFN->image_stride_get(ENDT, o->engine_data, &stride);
    if (!stride)
      stride = _evas_common_rgba_image_surface_size(o->cur->image.w, 1, 
o->cur->cspace, NULL, NULL, NULL, NULL);
 

-- 


Reply via email to