summaryrefslogtreecommitdiff
path: root/dix/privates.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-04-03 14:06:02 -0400
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2007-04-03 14:06:02 -0400
commit353e19fd5e18ad55a0dd12a7b63f6af9df7bfe6b (patch)
tree5bc1e222fdbcb2083233facde9006aa4a096b0f3 /dix/privates.c
parent327bc332a61294209d39286228199f54bdde73d1 (diff)
devPrivates rework: zero out newly allocated private space.
Diffstat (limited to 'dix/privates.c')
-rw-r--r--dix/privates.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/privates.c b/dix/privates.c
index cc4b01601..8a39437cb 100644
--- a/dix/privates.c
+++ b/dix/privates.c
@@ -107,7 +107,7 @@ dixAllocatePrivate(PrivateRec **privates, devprivate_key_t *const key)
if (item)
size += item->size;
- ptr = (PrivateRec *)xalloc(size);
+ ptr = (PrivateRec *)xcalloc(size, 1);
if (!ptr)
return NULL;
ptr->key = key;