mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 18:00:14 +01:00
Clear allocated RandR screen private structure.
Use xcalloc instead of xalloc when allocating this structure to ensure consistent contents at startup.
This commit is contained in:
parent
f8db7665dc
commit
16f4c0c175
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ Bool RRScreenInit(ScreenPtr pScreen)
|
|||
RRScreenGeneration = serverGeneration;
|
||||
}
|
||||
|
||||
pScrPriv = (rrScrPrivPtr) xalloc (sizeof (rrScrPrivRec));
|
||||
pScrPriv = (rrScrPrivPtr) xcalloc (1, sizeof (rrScrPrivRec));
|
||||
if (!pScrPriv)
|
||||
return FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue