GLX: Don't crash on unused client array members when switching to/from console.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user