summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-10 20:48:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-10 21:13:03 +0100
commit50104ef4ab7102d03a2f4a30f8c7267cb668d7b5 (patch)
tree517922f3adc6c42539c0baac51aa6ae2f2143d4f /hwpfilter
parent7c0abbbf18a3328b98afbdc182a32f721165009d (diff)
coverity#707916 Uninitialized scalar field
Change-Id: I42a2c556739d41728c68516646facd2009232ae2
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hwpread.cxx5
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);