diff options
author | Walter Harms <wharms@bfs.de> | 2024-01-08 17:01:44 +0100 |
---|---|---|
committer | Walter Harms <wharms@bfs.de> | 2024-01-08 17:01:44 +0100 |
commit | dce614623e1f069d79d33a233305e0754fa2fd48 (patch) | |
tree | e378ce4f01b472314bc09590199e05b2936be643 | |
parent | 4f78b615806fa1cfe2bdcf3f7c868b8a00dede77 (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.c | 5 |
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; } |