summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-21 09:06:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-21 09:24:45 +0000
commitafabc7d2f2fcf8fcd39ff5002f09c32e8f03d4bb (patch)
tree7819ed212ad4229b2a3844148191e6201134f031 /hwpfilter
parent9f9e861c6d168e8318b9cdc761a387b0d650e5c0 (diff)
valgrind: uninitialized reads
Change-Id: Ia1e821d1e323d85c65484c980be09f015af6517b
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hpara.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/hwpfilter/source/hpara.cxx b/hwpfilter/source/hpara.cxx
index 5b9ac75c87bd..84294c59ed3c 100644
--- a/hwpfilter/source/hpara.cxx
+++ b/hwpfilter/source/hpara.cxx
@@ -150,6 +150,7 @@ bool HWPPara::Read(HWPFile & hwpf, unsigned char flag)
perror("Memory Allocation: cshape\n");
return false;
}
+ memset(cshapep, 0, nch * sizeof(CharShape));
for (ii = 0; ii < nch; ii++)
{