summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2006-12-22 13:07:09 -0500
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2006-12-22 13:07:09 -0500
commitd9e079d2a385203fdd18d958cfc19d759cab4ba8 (patch)
tree20548a2b4ab268c5a32c5883f3d06816c9f5d43e /dix
parente437f357b6850a6c87ca6696870b3abd40e5b8ed (diff)
Zero out client devPrivates on allocation.
Diffstat (limited to 'dix')
-rw-r--r--dix/dispatch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c
index 51ad07da5..d44687ec3 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -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) )