projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3e9483
)
glx: Add missing null check in __glX_send_client_info()
author
Juha-Pekka Heikkila
<juhapekka.heikkila@gmail.com>
Fri, 7 Feb 2014 12:44:03 +0000
(14:44 +0200)
committer
Brian Paul
<brianp@vmware.com>
Fri, 7 Feb 2014 15:14:05 +0000
(08:14 -0700)
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/glx/clientinfo.c
patch
|
blob
|
history
diff --git
a/src/glx/clientinfo.c
b/src/glx/clientinfo.c
index e90fd7962979985d5950fb240aa0f186ff3a83de..8f3fdeba4aa1c39ff8f857da2bb7e29b9c0de6a8 100644
(file)
--- a/
src/glx/clientinfo.c
+++ b/
src/glx/clientinfo.c
@@
-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);