mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 14:00:03 +01:00
GLX: Don't crash on unused client array members when switching to/from console.
This commit is contained in:
parent
be9b0e558d
commit
c6d36b1cee
1 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue