forked from enlightenment/efl
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:
parent
ca1eba10af
commit
9e99fc2e3f
|
@ -22,7 +22,12 @@ _init_egl(Test_Data *td)
|
||||||
td->egl_display =
|
td->egl_display =
|
||||||
eglGetDisplay((EGLNativeDisplayType)ecore_wl2_display_get(td->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,
|
if (!eglChooseConfig(td->egl_display, attributes, &td->egl_conf,
|
||||||
1, &num_config))
|
1, &num_config))
|
||||||
|
|
Loading…
Reference in New Issue