[vlc-devel] [PATCH] egl: prevent a potential null-dereference
Zhao Zhili
quinkblack at foxmail.com
Tue Oct 16 14:25:09 CEST 2018
---
modules/video_output/opengl/egl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/opengl/egl.c b/modules/video_output/opengl/egl.c
index dec85f8..f8d0bd5 100644
--- a/modules/video_output/opengl/egl.c
+++ b/modules/video_output/opengl/egl.c
@@ -322,7 +322,7 @@ static int Open (vlc_object_t *obj, const struct gl_api *api)
eglQueryString(sys->display, EGL_VENDOR));
const char *ext = eglQueryString(sys->display, EGL_EXTENSIONS);
- if (*ext)
+ if (ext && *ext)
msg_Dbg(obj, " extensions: %s", ext);
if (major != 1 || minor < api->min_minor
--
2.9.5
More information about the vlc-devel
mailing list