From dce614623e1f069d79d33a233305e0754fa2fd48 Mon Sep 17 00:00:00 2001 From: Walter Harms Date: Mon, 8 Jan 2024 17:01:44 +0100 Subject: _XimEncodeString:no need to check arg for Xfree() Xfree() will happily ignore NULL, no need to check --- modules/im/ximcp/imRm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/im/ximcp/imRm.c b/modules/im/ximcp/imRm.c index 5dec292d..29f498a1 100644 --- a/modules/im/ximcp/imRm.c +++ b/modules/im/ximcp/imRm.c @@ -836,9 +836,8 @@ _XimEncodeString( } out = (char **)((char *)top + info->offset); - if(*out) { - Xfree(*out); - } + + Xfree(*out); *out = string; return True; } -- cgit v1.2.3