summaryrefslogtreecommitdiff
path: root/src/lib/emile
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-25 18:52:22 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-25 18:52:22 +0200
commit1c597b4373adb2c51155d2593f017881ecfc52d7 (patch)
tree681da1ff0dc013e5aa68f9921ab61da757512e5e /src/lib/emile
parentbb963f274bc301b624743643746615f792c72223 (diff)
emile: check that we actually do have option before using them.
CID 1288929
Diffstat (limited to 'src/lib/emile')
-rw-r--r--src/lib/emile/emile_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/emile/emile_image.c b/src/lib/emile/emile_image.c
index a5cfb04c03..180f44742b 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,
1698 ie_h = prop->h; 1698 ie_h = prop->h;
1699 } 1699 }
1700 1700
1701 if ((opts->region.w > 0) && (opts->region.h > 0)) 1701 if (opt && ((opts->region.w > 0) && (opts->region.h > 0)))
1702 { 1702 {
1703 region = 1; 1703 region = 1;
1704 1704