summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalter Harms <wharms@bfs.de>2024-01-08 17:01:44 +0100
committerWalter Harms <wharms@bfs.de>2024-01-08 17:01:44 +0100
commitdce614623e1f069d79d33a233305e0754fa2fd48 (patch)
treee378ce4f01b472314bc09590199e05b2936be643
parent4f78b615806fa1cfe2bdcf3f7c868b8a00dede77 (diff)
_XimEncodeString:no need to check arg for Xfree()
Xfree() will happily ignore NULL, no need to check
-rw-r--r--modules/im/ximcp/imRm.c5
1 files 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;
}