tests/ecore_wl2: Fix unchecked return value

Coverity reports that we do not check the return of eglInitialize
here.

Fixes Coverity CID1412362
This commit is contained in:
Christopher Michael 2020-06-10 08:38:02 -04:00
parent ca1eba10af
commit 9e99fc2e3f
1 changed files with 6 additions and 1 deletions

View File

@ -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))