mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-05 12:17:59 +02:00
_XimLocalCreateIC: minor cleanup
minor cleanup, no code change
This commit is contained in:
parent
e5b14e59a1
commit
59c9a89e25
1 changed files with 4 additions and 2 deletions
|
|
@ -143,7 +143,8 @@ _XimLocalCreateIC(
|
|||
unsigned int num;
|
||||
int len;
|
||||
|
||||
if((ic = Xcalloc(1, sizeof(XicRec))) == (Xic)NULL) {
|
||||
ic = Xcalloc(1, sizeof(XicRec));
|
||||
if( ic == (Xic)NULL) {
|
||||
return ((XIC)NULL);
|
||||
}
|
||||
|
||||
|
|
@ -158,7 +159,8 @@ _XimLocalCreateIC(
|
|||
|
||||
num = im->core.ic_num_resources;
|
||||
len = sizeof(XIMResource) * num;
|
||||
if((res = Xmalloc(len)) == (XIMResourceList)NULL) {
|
||||
res = Xmalloc(len);
|
||||
if( res == (XIMResourceList)NULL) {
|
||||
goto Set_Error;
|
||||
}
|
||||
(void)memcpy((char *)res, (char *)im->core.ic_resources, len);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue