forked from enlightenment/efl
wl_egl : Prevent access to NULL pointer
Summary: The pointer s can be null. Test Plan: N/A Reviewers: Jaehyun_Cho, raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10654
This commit is contained in:
parent
fee55857e4
commit
f4fa719eae
|
@ -48,7 +48,7 @@ eng_window_new(Evas_Engine_Info_Wayland *einfo, int w, int h, Render_Output_Swap
|
||||||
|
|
||||||
wl_disp = ecore_wl2_display_get(gw->wl2_disp);
|
wl_disp = ecore_wl2_display_get(gw->wl2_disp);
|
||||||
const char *s = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
|
const char *s = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
|
||||||
if (strstr(s, "EXT_platform_base"))
|
if (s && strstr(s, "EXT_platform_base"))
|
||||||
{
|
{
|
||||||
EGLDisplay (*func) (EGLenum platform, void *native_display, const EGLint *attrib_list);
|
EGLDisplay (*func) (EGLenum platform, void *native_display, const EGLint *attrib_list);
|
||||||
func = (void *)eglGetProcAddress("eglGetPlatformDisplayEXT");
|
func = (void *)eglGetProcAddress("eglGetPlatformDisplayEXT");
|
||||||
|
|
Loading…
Reference in New Issue