evas-gl: Fix dereference after null check

Coverity reports that 'ctx' may be NULL here and we should check it
before usage (as is done above).

Coverity CID1339785

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
Chris Michael 2016-03-10 12:20:34 -05:00
parent 07da0ba5d7
commit bb24aab001
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ _internal_resource_make_current(void *eng_data, EVGL_Surface *sfc, EVGL_Context
{
// Do Nothing
}
else if (ctx->pixmap_image_supported) // Pixmap surface
else if ((ctx) && (ctx->pixmap_image_supported)) // Pixmap surface
{
if (!sfc->indirect_sfc)
{