diff options
author | Keith Packard <keithp@guitar.keithp.com> | 2007-03-23 00:57:18 -0700 |
---|---|---|
committer | Keith Packard <keithp@guitar.keithp.com> | 2007-03-23 01:30:10 -0700 |
commit | 479b2be4badab0a67b1f091feb83c1364e27d783 (patch) | |
tree | fd15bc80800f8d23629f410d30eb392b57cc302a /randr/randr.c | |
parent | b63e0d2545bb75e14d9de019a88f31e20a2f7377 (diff) |
Clear allocated RandR screen private structure.
Use xcalloc instead of xalloc when allocating this structure to ensure
consistent contents at startup.
(cherry picked from commit 16f4c0c1750824f2e5a001cef82a4122a7a2beb0)
Diffstat (limited to 'randr/randr.c')
-rw-r--r-- | randr/randr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/randr.c b/randr/randr.c index 5fa9baf84..4dd0ee5b4 100644 --- a/randr/randr.c +++ b/randr/randr.c @@ -230,7 +230,7 @@ Bool RRScreenInit(ScreenPtr pScreen) RRScreenGeneration = serverGeneration; } - pScrPriv = (rrScrPrivPtr) xalloc (sizeof (rrScrPrivRec)); + pScrPriv = (rrScrPrivPtr) xcalloc (1, sizeof (rrScrPrivRec)); if (!pScrPriv) return FALSE; |