diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-10 20:48:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-10 21:13:03 +0100 |
commit | 50104ef4ab7102d03a2f4a30f8c7267cb668d7b5 (patch) | |
tree | 517922f3adc6c42539c0baac51aa6ae2f2143d4f /hwpfilter/source | |
parent | 7c0abbbf18a3328b98afbdc182a32f721165009d (diff) |
coverity#707916 Uninitialized scalar field
Change-Id: I42a2c556739d41728c68516646facd2009232ae2
Diffstat (limited to 'hwpfilter/source')
-rw-r--r-- | hwpfilter/source/hwpread.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hwpfilter/source/hwpread.cxx b/hwpfilter/source/hwpread.cxx index c98b85dbe4b5..5763a5b757b9 100644 --- a/hwpfilter/source/hwpread.cxx +++ b/hwpfilter/source/hwpread.cxx @@ -775,15 +775,16 @@ bool TocMark::Read(HWPFile & hwpf) return !hwpf.State(); } - // index mark(26) IndexMark::IndexMark() : HBox(CH_INDEX_MARK) + , pgno(0) , dummy(0) { + memset(keyword1, 0, sizeof(keyword1)); + memset(keyword2, 0, sizeof(keyword2)); } - bool IndexMark::Read(HWPFile & hwpf) { hwpf.Read2b(&keyword1, 60); |