summaryrefslogtreecommitdiff
path: root/src/lib/emile
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-10-22 11:29:36 -0700
committerCedric BAIL <cedric@osg.samsung.com>2015-10-22 11:31:06 -0700
commit508143efba0cef5ea27cc1f45d98b10ab9fd2129 (patch)
tree77d46f6aef4553d24aa284d1b2d03c217f8afe14 /src/lib/emile
parentb1600b2daa0d5de62b5f738d7845fd512aa6bfba (diff)
emile: prevent segv when rotation is asked and there is no opts provided.
Thanks Vivek for pointing the problem. @fix
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 0e184d6f14..ef343ccf99 100644
--- a/src/lib/emile/emile_image.c
+++ b/src/lib/emile/emile_image.c
@@ -1633,7 +1633,7 @@ _emile_jpeg_data(Emile_Image *image,
1633 memset(&cinfo, 0, sizeof(cinfo)); 1633 memset(&cinfo, 0, sizeof(cinfo));
1634 if (prop->rotated) 1634 if (prop->rotated)
1635 { 1635 {
1636 degree = opts->degree; 1636 degree = opts ? opts->degree : 0;
1637 if (degree == 90 || degree == 270) 1637 if (degree == 90 || degree == 270)
1638 change_wh = EINA_TRUE; 1638 change_wh = EINA_TRUE;
1639 } 1639 }