mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-04 14:10:32 +01:00
Zero out client devPrivates on allocation.
This commit is contained in:
parent
e437f357b6
commit
d9e079d2a3
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue