aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/imInt.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/imInt.c')
-rw-r--r--nx-X11/lib/X11/imInt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/imInt.c b/nx-X11/lib/X11/imInt.c
index c78ffc68d..bab4b5399 100644
--- a/nx-X11/lib/X11/imInt.c
+++ b/nx-X11/lib/X11/imInt.c
@@ -204,9 +204,8 @@ _XimOpenIM(
Xim im;
register int i;
- if (!(im = (Xim)Xmalloc(sizeof(XimRec))))
+ if (!(im = Xcalloc(1, sizeof(XimRec))))
return (XIM)NULL;
- bzero(im, sizeof(XimRec));
im->core.lcd = lcd;
im->core.ic_chain = (XIC)NULL;