mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
egl: check for null ptr/name
This commit is contained in:
parent
5b60d6d07b
commit
2cb213ff23
1 changed files with 4 additions and 1 deletions
|
|
@ -654,7 +654,10 @@ xdri_eglInitialize(_EGLDriver *drv, EGLDisplay dpy,
|
||||||
|
|
||||||
xdri_drv->Base.Initialized = EGL_TRUE;
|
xdri_drv->Base.Initialized = EGL_TRUE;
|
||||||
|
|
||||||
snprintf(name, sizeof(name), "X/DRI:%s", xdri_drv->dri_driver_name);
|
if (xdri_drv->dri_driver_name)
|
||||||
|
snprintf(name, sizeof(name), "X/DRI:%s", xdri_drv->dri_driver_name);
|
||||||
|
else
|
||||||
|
snprintf(name, sizeof(name), "X/DRI");
|
||||||
xdri_drv->Base.Name = name;
|
xdri_drv->Base.Name = name;
|
||||||
|
|
||||||
/* we're supporting EGL 1.4 */
|
/* we're supporting EGL 1.4 */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue