changeset 7:6ab41ec6f895

fix dtoa crash when it encounters malformed entry.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Tue, 18 Dec 2007 23:25:17 +0900
parents 4b72e5129b12
children 76281fa7934f
files Wnn/jutil/ujisf.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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