summaryrefslogtreecommitdiff
path: root/randr/rrcrtc.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2007-11-15 17:00:37 -0500
committerAdam Jackson <ajax@redhat.com>2007-11-15 17:00:37 -0500
commit70e50fa51f05663f289eeeea4521e737e8e24bca (patch)
tree39b460493b28c00a5f260a4e6802933cbc337ff5 /randr/rrcrtc.c
parent8d0cd1cd2c57ee5a2fc4d577d8182d66369f0617 (diff)
Allocate RRCrtcRecs with calloc.
Diffstat (limited to 'randr/rrcrtc.c')
-rw-r--r--randr/rrcrtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index 43cfb2923..4a7275bbf 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -72,7 +72,7 @@ RRCrtcCreate (ScreenPtr pScreen, void *devPrivate)
return FALSE;
pScrPriv->crtcs = crtcs;
- crtc = xalloc (sizeof (RRCrtcRec));
+ crtc = xcalloc (1, sizeof (RRCrtcRec));
if (!crtc)
return NULL;
crtc->id = FakeClientID (0);