summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-11-13 13:40:44 +0900
committerJunsuChoi <jsuya.choi@samsung.com>2019-11-13 13:42:16 +0900
commitf4fa719eaecb09b479b2807dcf661820d3b7fe3d (patch)
tree075f1971eaf4b3887999098ff82106573a200d71
parentfee55857e47234067a4c773e8c7eb291ae61cca2 (diff)
downloadefl-f4fa719eaecb09b479b2807dcf661820d3b7fe3d.tar.gz
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
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_wl_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
index 95e59ce9e2..cad83434fc 100644
--- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c
+++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
@@ -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);
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);
func = (void *)eglGetProcAddress("eglGetPlatformDisplayEXT");