summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-10 20:46:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-10 21:13:03 +0100
commit7c0abbbf18a3328b98afbdc182a32f721165009d (patch)
tree69c12b04d328026b23cf5e4c564636da4daa56d9 /hwpfilter
parent2732f2b18d7883d31214d4f0e887168c1dec68c5 (diff)
coverity#707918 Uninitialized scalar field
Change-Id: I2d54b7afa9dd2639d36cdead4e4e94866d775c8d
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 dd9bc917b522..c98b85dbe4b5 100644
--- a/hwpfilter/source/hwpread.cxx
+++ b/hwpfilter/source/hwpread.cxx
@@ -698,13 +698,14 @@ bool PageNumCtrl::Read(HWPFile & hwpf)
return !hwpf.State();
}
-
// mail merge(22)
-MailMerge::MailMerge():HBox(CH_MAIL_MERGE)
+MailMerge::MailMerge()
+ : HBox(CH_MAIL_MERGE)
+ , dummy(0)
{
+ memset(field_name, 0, sizeof(field_name));
}
-
bool MailMerge::Read(HWPFile & hwpf)
{
hwpf.Read1b(field_name, 20);