Zero out client devPrivates on allocation.
This commit is contained in:
parent
e437f357b6
commit
d9e079d2a3
|
@ -3752,6 +3752,8 @@ InitClientPrivates(ClientPtr client)
|
|||
client->devPrivates = ppriv;
|
||||
sizes = clientPrivateSizes;
|
||||
ptr = (char *)(ppriv + clientPrivateLen);
|
||||
if (ppriv)
|
||||
bzero(ppriv, totalClientSize - sizeof(ClientRec));
|
||||
for (i = clientPrivateLen; --i >= 0; ppriv++, sizes++)
|
||||
{
|
||||
if ( (size = *sizes) )
|
||||
|
|
Loading…
Reference in New Issue