devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=9e99fc2e3f10a5af900c50f0bab230683080bbe6
commit 9e99fc2e3f10a5af900c50f0bab230683080bbe6 Author: Christopher Michael <[email protected]> Date: Wed Jun 10 08:38:02 2020 -0400 tests/ecore_wl2: Fix unchecked return value Coverity reports that we do not check the return of eglInitialize here. Fixes Coverity CID1412362 --- src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h b/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h index f235a481bb..4446bc547f 100644 --- a/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h +++ b/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h @@ -22,7 +22,12 @@ _init_egl(Test_Data *td) td->egl_display = eglGetDisplay((EGLNativeDisplayType)ecore_wl2_display_get(td->display)); - eglInitialize(td->egl_display, NULL, NULL); + if (!eglInitialize(td->egl_display, NULL, NULL)) + { + ERR("Failed to initialize egl"); + eglTerminate(td->egl_display); + return EINA_FALSE; + } if (!eglChooseConfig(td->egl_display, attributes, &td->egl_conf, 1, &num_config)) --
