summaryrefslogtreecommitdiff
path: root/GL/glx/glxext.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-10-22 18:28:03 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-10-22 18:28:03 +0200
commitc6d36b1cee44a9cbb690dff62a4683d7f6fbf30c (patch)
tree3323cbf0db1143e359071b5820a71a7e9940c09b /GL/glx/glxext.c
parentbe9b0e558d6172ef01ed880d47da897d2ceb25fa (diff)
GLX: Don't crash on unused client array members when switching to/from console.
Diffstat (limited to 'GL/glx/glxext.c')
-rw-r--r--GL/glx/glxext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/GL/glx/glxext.c b/GL/glx/glxext.c
index 4d6bfd7c6..546d87f01 100644
--- a/GL/glx/glxext.c
+++ b/GL/glx/glxext.c
@@ -393,7 +393,7 @@ void glxSuspendClients(void)
int i;
for (i = 1; i < currentMaxClients; i++) {
- if (glxGetClient(clients[i])->inUse)
+ if (clients[i] && glxGetClient(clients[i])->inUse)
IgnoreClient(clients[i]);
}
@@ -408,7 +408,7 @@ void glxResumeClients(void)
glxBlockClients = FALSE;
for (i = 1; i < currentMaxClients; i++) {
- if (glxGetClient(clients[i])->inUse)
+ if (clients[i] && glxGetClient(clients[i])->inUse)
AttendClient(clients[i]);
}