aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/lcJis.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/lcJis.c')
-rw-r--r--nx-X11/lib/X11/lcJis.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/lcJis.c b/nx-X11/lib/X11/lcJis.c
index 594e6363c..551862d9b 100644
--- a/nx-X11/lib/X11/lcJis.c
+++ b/nx-X11/lib/X11/lcJis.c
@@ -545,10 +545,9 @@ create_conv(
if (XLC_PUBLIC(lcd, is_state_depend))
conv->methods->reset = init_state;
- conv->state = (XPointer) Xmalloc(sizeof(StateRec));
+ conv->state = Xcalloc(1, sizeof(StateRec));
if (conv->state == NULL)
goto err;
- bzero((char *) conv->state, sizeof(StateRec));
state = (State) conv->state;
state->lcd = lcd;