_XimEncodeString:no need to check arg for Xfree()

Xfree() will happily ignore NULL, no need to check
This commit is contained in:
Walter Harms 2024-01-08 17:01:44 +01:00
parent 4f78b61580
commit dce614623e

View file

@ -836,9 +836,8 @@ _XimEncodeString(
}
out = (char **)((char *)top + info->offset);
if(*out) {
Xfree(*out);
}
Xfree(*out);
*out = string;
return True;
}