summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-03-10 12:20:34 -0500
committerChris Michael <cpmichael@osg.samsung.com>2016-03-10 12:20:34 -0500
commitbb24aab001646f3a64ae197de6fb5af24a118eb5 (patch)
tree6a5c956cad93d573ae7596111cd4e35ab7e02fb2 /src
parent07da0ba5d7f05ea71fcf7be7e9d0c7f5230b7cd4 (diff)
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>
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_core.c b/src/modules/evas/engines/gl_common/evas_gl_core.c
index e5414b4f3f..3ed4a1d493 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_core.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_core.c
@@ -143,7 +143,7 @@ _internal_resource_make_current(void *eng_data, EVGL_Surface *sfc, EVGL_Context
143 { 143 {
144 // Do Nothing 144 // Do Nothing
145 } 145 }
146 else if (ctx->pixmap_image_supported) // Pixmap surface 146 else if ((ctx) && (ctx->pixmap_image_supported)) // Pixmap surface
147 { 147 {
148 if (!sfc->indirect_sfc) 148 if (!sfc->indirect_sfc)
149 { 149 {