summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51>2012-01-05 00:14:30 +0000
committerarthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51>2012-01-05 00:14:30 +0000
commit8f7575736031a19220e1a36ab2eb21c6d447dfef (patch)
tree26c833772b18458b23cbafd7e217db3c75690b6d
parentca72e2646f852b6c39ef1b07fa9b250988ce9d54 (diff)
downloadsrc-8f7575736031a19220e1a36ab2eb21c6d447dfef.tar.gz
Coverity fix: uninitialized scalar member.
git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@119 672e30a5-4c29-85ac-ac6d-611c735e0a51
-rw-r--r--sfntly/table/bitmap/index_sub_table.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/sfntly/table/bitmap/index_sub_table.cc b/sfntly/table/bitmap/index_sub_table.cc
index d302aed..5e29784 100644
--- a/sfntly/table/bitmap/index_sub_table.cc
+++ b/sfntly/table/bitmap/index_sub_table.cc
@@ -210,7 +210,12 @@ int32_t IndexSubTable::Builder::SubSerialize(WritableFontData* new_data) {
}
IndexSubTable::Builder::Builder(int32_t data_size, int32_t index_format)
- : SubTable::Builder(data_size), index_format_(index_format) {
+ : SubTable::Builder(data_size),
+ first_glyph_index_(0),
+ last_glyph_index_(0),
+ index_format_(index_format),
+ image_format_(0),
+ image_data_offset_(0) {
}
IndexSubTable::Builder::Builder(int32_t index_format,
@@ -218,6 +223,8 @@ IndexSubTable::Builder::Builder(int32_t index_format,
int32_t image_data_offset,
int32_t data_size)
: SubTable::Builder(data_size),
+ first_glyph_index_(0),
+ last_glyph_index_(0),
index_format_(index_format),
image_format_(image_format),
image_data_offset_(image_data_offset) {