diff options
-rw-r--r-- | dix/dispatch.c | 2 |
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) ) |