summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-09 17:06:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-09 17:06:59 +0000
commit3f0a8dc3c8204d6a500a5da64ad57996d593022f (patch)
tree498bd36bf22824989dcd189c981878ec4b9e8666 /hwpfilter
parent1ac855e8550af5cb54b27f306743f56a26c8f9c1 (diff)
coverity#707905 Uninitialized scalar field
Change-Id: Icb00858146d65963a1c3144a61aa467d7da461e4
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hwpread.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/hwpfilter/source/hwpread.cxx b/hwpfilter/source/hwpread.cxx
index d0b37c496f58..a5ba049de171 100644
--- a/hwpfilter/source/hwpread.cxx
+++ b/hwpfilter/source/hwpread.cxx
@@ -637,13 +637,16 @@ bool NewNum::Read(HWPFile & hwpf)
return !hwpf.State();
}
-
// show page number (20)
-ShowPageNum::ShowPageNum():HBox(CH_SHOW_PAGE_NUM)
+ShowPageNum::ShowPageNum()
+ : HBox(CH_SHOW_PAGE_NUM)
+ , where(0)
+ , m_nPageNumber(0)
+ , shape(0)
+ , dummy(0)
{
}
-
bool ShowPageNum::Read(HWPFile & hwpf)
{
hwpf.Read2b(&where, 1);