Zero out newly allocated ClientRec structures.
This is required to initialize the devPrivates to a known state.
This commit is contained in:
parent
0fba09cdfc
commit
cec392656c
|
@ -3612,8 +3612,13 @@ CloseDownRetainedResources()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern int clientPrivateLen;
|
||||||
|
extern unsigned *clientPrivateSizes;
|
||||||
|
extern unsigned totalClientSize;
|
||||||
|
|
||||||
void InitClient(ClientPtr client, int i, pointer ospriv)
|
void InitClient(ClientPtr client, int i, pointer ospriv)
|
||||||
{
|
{
|
||||||
|
bzero(client, totalClientSize);
|
||||||
client->index = i;
|
client->index = i;
|
||||||
client->sequence = 0;
|
client->sequence = 0;
|
||||||
client->clientAsMask = ((Mask)i) << CLIENTOFFSET;
|
client->clientAsMask = ((Mask)i) << CLIENTOFFSET;
|
||||||
|
@ -3664,10 +3669,6 @@ void InitClient(ClientPtr client, int i, pointer ospriv)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int clientPrivateLen;
|
|
||||||
extern unsigned *clientPrivateSizes;
|
|
||||||
extern unsigned totalClientSize;
|
|
||||||
|
|
||||||
int
|
int
|
||||||
InitClientPrivates(ClientPtr client)
|
InitClientPrivates(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user