summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuha-Pekka Heikkila <[email protected]>2014-02-07 14:44:03 +0200
committerBrian Paul <[email protected]>2014-02-07 08:14:05 -0700
commitd530745169282469b2dd8221629ef948ff31bcf3 (patch)
tree0aba8cff689e6ccc90761d46907ebb6d4084e4a8 /src
parentd3e948340be3fe61d3724f1b96651c2097b4026e (diff)
glx: Add missing null check in __glX_send_client_info()
Signed-off-by: Juha-Pekka Heikkila <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glx/clientinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/clientinfo.c b/src/glx/clientinfo.c
index e90fd796297..8f3fdeba4aa 100644
--- 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);