diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-04-03 14:06:02 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil> | 2007-04-03 14:06:02 -0400 |
commit | 353e19fd5e18ad55a0dd12a7b63f6af9df7bfe6b (patch) | |
tree | 5bc1e222fdbcb2083233facde9006aa4a096b0f3 /dix/privates.c | |
parent | 327bc332a61294209d39286228199f54bdde73d1 (diff) |
devPrivates rework: zero out newly allocated private space.
Diffstat (limited to 'dix/privates.c')
-rw-r--r-- | dix/privates.c | 2 |
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; |