mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-06 09:08:07 +02:00
_XimEncodeString:no need to check arg for Xfree()
Xfree() will happily ignore NULL, no need to check
This commit is contained in:
parent
4f78b61580
commit
dce614623e
1 changed files with 2 additions and 3 deletions
|
|
@ -836,9 +836,8 @@ _XimEncodeString(
|
|||
}
|
||||
|
||||
out = (char **)((char *)top + info->offset);
|
||||
if(*out) {
|
||||
Xfree(*out);
|
||||
}
|
||||
|
||||
Xfree(*out);
|
||||
*out = string;
|
||||
return True;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue