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 00:57:18 -0700 |
commit | 16f4c0c1750824f2e5a001cef82a4122a7a2beb0 (patch) | |
tree | 5afd204bdd326eb85047863c36e5bf83f15031f4 | |
parent | f8db7665dcd7af78ca4db2461e0bf787ec662cb1 (diff) | |
download | xserver-16f4c0c1750824f2e5a001cef82a4122a7a2beb0.tar.gz |
Clear allocated RandR screen private structure.
Use xcalloc instead of xalloc when allocating this structure to ensure
consistent contents at startup.
-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; |