(1614) xfixes: XFixesSelectCursorInput() use calloc()
In general safer coding practise to always use calloc() instead of risking forgetting to zero-out some fields. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
08bacc793b
commit
fe540c901e
|
@ -226,7 +226,6 @@ XFixesSelectCursorInput(ClientPtr pClient, WindowPtr pWindow, CARD32 eventMask)
|
|||
if (!e)
|
||||
return BadAlloc;
|
||||
|
||||
e->next = 0;
|
||||
e->pClient = pClient;
|
||||
e->pWindow = pWindow;
|
||||
e->clientResource = FakeClientID(pClient->index);
|
||||
|
|
Loading…
Reference in New Issue