diff options
author | Christopher Michael <devilhorns@comcast.net> | 2020-06-10 08:38:02 -0400 |
---|---|---|
committer | Christopher Michael <devilhorns@comcast.net> | 2020-06-10 08:38:02 -0400 |
commit | 9e99fc2e3f10a5af900c50f0bab230683080bbe6 (patch) | |
tree | 9593e9c28462231c9ae4d429d72df19f184b1911 | |
parent | ca1eba10af084bd44d2aa1738b2b55a408ece802 (diff) | |
download | efl-9e99fc2e3f10a5af900c50f0bab230683080bbe6.tar.gz |
tests/ecore_wl2: Fix unchecked return value
Coverity reports that we do not check the return of eglInitialize
here.
Fixes Coverity CID1412362
-rw-r--r-- | src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h | 7 |
1 files changed, 6 insertions, 1 deletions
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)) |