summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-13 11:57:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-13 14:03:32 +0000
commitc338f61286366bd140f59829461135700c06ce33 (patch)
treebc434bb20b38425b75c802997c34ca35bceebe22 /hwpfilter
parentfc77ac3d4baeab566f8b2317bb27ab525ce0e201 (diff)
coverity#707909 Uninitialized scalar field
Change-Id: I0cf8f5f862afb13b406776e17dd5036cefe23f3b
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hwpread.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/hwpfilter/source/hwpread.cxx b/hwpfilter/source/hwpread.cxx
index 57fe728ccb58..0facd76005e5 100644
--- a/hwpfilter/source/hwpread.cxx
+++ b/hwpfilter/source/hwpread.cxx
@@ -734,13 +734,14 @@ bool Compose::Read(HWPFile & hwpf)
return !hwpf.State();
}
-
// hyphen(24)
-Hyphen::Hyphen():HBox(CH_HYPHEN)
+Hyphen::Hyphen()
+ : HBox(CH_HYPHEN)
+ , width(0)
+ , dummy(0)
{
}
-
bool Hyphen::Read(HWPFile & hwpf)
{
hwpf.Read2b(&width, 1);