mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 21:14:36 +00:00
Clear allocated RandR screen private structure.
Use xcalloc instead of xalloc when allocating this structure to ensure consistent contents at startup. (cherry picked from commit 16f4c0c1750824f2e5a001cef82a4122a7a2beb0)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user