emile: check that we actually do have option before using them.

CID 1288929
This commit is contained in:
Cedric BAIL 2015-04-25 18:52:22 +02:00
parent bb963f274b
commit 1c597b4373
1 changed files with 1 additions and 1 deletions

View File

@ -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;