Allocate RRCrtcRecs with calloc.
This commit is contained in:
parent
8d0cd1cd2c
commit
70e50fa51f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user