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
5c09c89903
commit
fbeee675fc
|
@ -226,7 +226,6 @@ XFixesSelectCursorInput(ClientPtr pClient, WindowPtr pWindow, CARD32 eventMask)
|
||||||
if (!e)
|
if (!e)
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
|
|
||||||
e->next = 0;
|
|
||||||
e->pClient = pClient;
|
e->pClient = pClient;
|
||||||
e->pWindow = pWindow;
|
e->pWindow = pWindow;
|
||||||
e->clientResource = FakeClientID(pClient->index);
|
e->clientResource = FakeClientID(pClient->index);
|
||||||
|
|
Loading…
Reference in New Issue