diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-10-22 18:28:03 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-10-22 18:28:03 +0200 |
commit | c6d36b1cee44a9cbb690dff62a4683d7f6fbf30c (patch) | |
tree | 3323cbf0db1143e359071b5820a71a7e9940c09b /GL | |
parent | be9b0e558d6172ef01ed880d47da897d2ceb25fa (diff) |
GLX: Don't crash on unused client array members when switching to/from console.
Diffstat (limited to 'GL')
-rw-r--r-- | GL/glx/glxext.c | 4 |
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]); } |