mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 08:50:49 +02:00
glx: Add missing null check in __glX_send_client_info()
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
d3e948340b
commit
d530745169
1 changed files with 4 additions and 0 deletions
|
|
@ -113,6 +113,10 @@ __glX_send_client_info(struct glx_display *glx_dpy)
|
|||
}
|
||||
|
||||
gl_extension_string = __glXGetClientGLExtensionString();
|
||||
if (gl_extension_string == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
gl_extension_length = strlen(gl_extension_string) + 1;
|
||||
|
||||
c = XGetXCBConnection(glx_dpy->dpy);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue