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 16f4c0c175
)
This commit is contained in:
parent
b63e0d2545
commit
479b2be4ba
|
@ -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…
Reference in New Issue
Block a user