cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1c597b4373adb2c51155d2593f017881ecfc52d7

commit 1c597b4373adb2c51155d2593f017881ecfc52d7
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Sat Apr 25 18:52:22 2015 +0200

    emile: check that we actually do have option before using them.
    
    CID 1288929
---
 src/lib/emile/emile_image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/emile/emile_image.c b/src/lib/emile/emile_image.c
index a5cfb04..180f447 100644
--- a/src/lib/emile/emile_image.c
+++ b/src/lib/emile/emile_image.c
@@ -1698,7 +1698,7 @@ _emile_jpeg_data(Emile_Image *image,
         ie_h = prop->h;
      }
 
-   if ((opts->region.w > 0) && (opts->region.h > 0))
+   if (opt && ((opts->region.w > 0) && (opts->region.h > 0)))
      {
         region = 1;
 

-- 


Reply via email to