summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-30 15:43:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-08-31 12:29:53 +0200
commitfc3bacf7e02af57781a9d63581abc96d66d6529f (patch)
treeb0f7bce4f4ce70cf2d954f5446ece73cca8fd9b6 /hwpfilter
parent203cc17337702e0ae50d120aae1e18f8ce649ee7 (diff)
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: Id877653f5c120f690fc3f597979de88926ec6ab0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121354 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/htags.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/hwpfilter/source/htags.cxx b/hwpfilter/source/htags.cxx
index d0a7d772ce15..334e2b0f3b47 100644
--- a/hwpfilter/source/htags.cxx
+++ b/hwpfilter/source/htags.cxx
@@ -32,6 +32,8 @@ bool HyperText::Read(HWPFile& hwpf)
nRead += hwpf.ReadBlock(macro, 325);
if (hwpf.Read1b(type))
++nRead;
+ else
+ type = 0;
nRead += hwpf.ReadBlock(reserve, 3);
if( type == 2 )
{