summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@guitar.keithp.com>2007-03-23 00:57:18 -0700
committerKeith Packard <keithp@guitar.keithp.com>2007-03-23 00:57:18 -0700
commit16f4c0c1750824f2e5a001cef82a4122a7a2beb0 (patch)
tree5afd204bdd326eb85047863c36e5bf83f15031f4
parentf8db7665dcd7af78ca4db2461e0bf787ec662cb1 (diff)
downloadxserver-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.c2
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;