mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 15:48:07 +02:00
Allocate RRCrtcRecs with calloc.
This commit is contained in:
parent
8d0cd1cd2c
commit
70e50fa51f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue