Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 455ab58c authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am 63108c34: fix a possible null dereference when eglMakeCurrent() fails

* commit '63108c34':
  fix a possible null dereference when eglMakeCurrent() fails
parents 7390e049 63108c34
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -745,7 +745,8 @@ EGLBoolean eglMakeCurrent( EGLDisplay dpy, EGLSurface draw,
        }
    } else {
        // this will ALOGE the error
        result = setError(c->cnx->egl.eglGetError(), EGL_FALSE);
        egl_connection_t* const cnx = &gEGLImpl;
        result = setError(cnx->egl.eglGetError(), EGL_FALSE);
    }
    return result;
}