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