devPrivates rework: zero out newly allocated private space.

This commit is contained in:
Eamon Walsh 2007-04-03 14:06:02 -04:00 committed by Eamon Walsh
parent 327bc332a6
commit 353e19fd5e

View File

@ -107,7 +107,7 @@ dixAllocatePrivate(PrivateRec **privates, devprivate_key_t *const key)
if (item) if (item)
size += item->size; size += item->size;
ptr = (PrivateRec *)xalloc(size); ptr = (PrivateRec *)xcalloc(size, 1);
if (!ptr) if (!ptr)
return NULL; return NULL;
ptr->key = key; ptr->key = key;