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;
pScrPriv->crtcs = crtcs;
crtc = xalloc (sizeof (RRCrtcRec));
crtc = xcalloc (1, sizeof (RRCrtcRec));
if (!crtc)
return NULL;
crtc->id = FakeClientID (0);