From fbeee675fcc2abd21aae6128506dd7c7c4a15cae Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 21 Feb 2025 12:13:24 +0100 Subject: [PATCH] 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 --- xfixes/cursor.c | 1 - 1 file changed, 1 deletion(-) diff --git a/xfixes/cursor.c b/xfixes/cursor.c index 0fd41dca7..738d43313 100644 --- a/xfixes/cursor.c +++ b/xfixes/cursor.c @@ -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);