mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-07 01:38:52 +02: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;
|
client->devPrivates = ppriv;
|
||||||
sizes = clientPrivateSizes;
|
sizes = clientPrivateSizes;
|
||||||
ptr = (char *)(ppriv + clientPrivateLen);
|
ptr = (char *)(ppriv + clientPrivateLen);
|
||||||
|
if (ppriv)
|
||||||
|
bzero(ppriv, totalClientSize - sizeof(ClientRec));
|
||||||
for (i = clientPrivateLen; --i >= 0; ppriv++, sizes++)
|
for (i = clientPrivateLen; --i >= 0; ppriv++, sizes++)
|
||||||
{
|
{
|
||||||
if ( (size = *sizes) )
|
if ( (size = *sizes) )
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue