Allocate RRCrtcRecs with calloc.

This commit is contained in:
Adam Jackson 2007-11-15 17:00:37 -05:00
parent 8d0cd1cd2c
commit 70e50fa51f

View File

@ -72,7 +72,7 @@ RRCrtcCreate (ScreenPtr pScreen, void *devPrivate)
return FALSE; return FALSE;
pScrPriv->crtcs = crtcs; pScrPriv->crtcs = crtcs;
crtc = xalloc (sizeof (RRCrtcRec)); crtc = xcalloc (1, sizeof (RRCrtcRec));
if (!crtc) if (!crtc)
return NULL; return NULL;
crtc->id = FakeClientID (0); crtc->id = FakeClientID (0);