# HG changeset patch # User Yoshiki Yazawa # Date 1197987917 -32400 # Node ID 6ab41ec6f895decba1dd0886386a3423c571cf8f # Parent 4b72e5129b12486f4962d4422ca65bc4df50e890 fix dtoa crash when it encounters malformed entry. diff -r 4b72e5129b12 -r 6ab41ec6f895 Wnn/jutil/ujisf.c --- a/Wnn/jutil/ujisf.c Thu Dec 13 23:23:43 2007 +0900 +++ b/Wnn/jutil/ujisf.c Tue Dec 18 23:25:17 2007 +0900 @@ -617,10 +617,11 @@ #endif fprintf (opter, "%s", buffer); fprintf (opter, "\n"); - for (jep = jeary, i = 0; i < jt.maxserial; i++, jep++) - { - print_je (*jep, opter, serial_out, esc_exp); - } + for (jep = jeary, i = 0; i < jt.maxserial; i++, jep++) { + if (jep && opter && (*jep)->yomi) { + print_je (*jep, opter, serial_out, esc_exp); + } + } } int