From 70e50fa51f05663f289eeeea4521e737e8e24bca Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 15 Nov 2007 17:00:37 -0500 Subject: Allocate RRCrtcRecs with calloc. --- randr/rrcrtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'randr/rrcrtc.c') 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); -- cgit v1.2.3