GLX: Don't crash on unused client array members when switching to/from console.
This commit is contained in:
parent
be9b0e558d
commit
c6d36b1cee
|
@ -393,7 +393,7 @@ void glxSuspendClients(void)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 1; i < currentMaxClients; i++) {
|
for (i = 1; i < currentMaxClients; i++) {
|
||||||
if (glxGetClient(clients[i])->inUse)
|
if (clients[i] && glxGetClient(clients[i])->inUse)
|
||||||
IgnoreClient(clients[i]);
|
IgnoreClient(clients[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -408,7 +408,7 @@ void glxResumeClients(void)
|
||||||
glxBlockClients = FALSE;
|
glxBlockClients = FALSE;
|
||||||
|
|
||||||
for (i = 1; i < currentMaxClients; i++) {
|
for (i = 1; i < currentMaxClients; i++) {
|
||||||
if (glxGetClient(clients[i])->inUse)
|
if (clients[i] && glxGetClient(clients[i])->inUse)
|
||||||
AttendClient(clients[i]);
|
AttendClient(clients[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user