* src/truetype/ttobjs.c (tt_size_init): size->ttmetrics.valid is initialized twice. size->strike_index is not initialized.
diff --git a/ChangeLog b/ChangeLog
index b71331b..d65920f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-06 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/truetype/ttobjs.c (tt_size_init): size->ttmetrics.valid is
+ initialized twice.
+ size->strike_index is not initialized.
+
2005-12-02 Taek Kwan(TK) Lee <taeklee@gmail.com>
* src/type42/t42objs.x (T42_Face_Init): Replace call to
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index e73efb6..ab18160 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -507,8 +507,6 @@
TT_MaxProfile* maxp = &face->max_profile;
- size->ttmetrics.valid = FALSE;
-
size->max_function_defs = maxp->maxFunctionDefs;
size->max_instruction_defs = maxp->maxInstructionDefs;
@@ -587,6 +585,7 @@
#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
size->ttmetrics.valid = FALSE;
+ size->strike_index = 0xFFFFU;
return error;
}