summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/glxcmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index c8ec9c21fed..c29bc1cb67b 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -594,7 +594,7 @@ __glXIsDirect(Display * dpy, GLXContextID contextID)
(c, contextID),
NULL);
- const Bool is_direct = reply->is_direct ? True : False;
+ const Bool is_direct = (reply != NULL && reply->is_direct) ? True : False;
free(reply);
return is_direct;