summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
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;