summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-23 20:21:25 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-08-25 17:36:19 +0200
commitf1afe20decb818b5f8c3a911d569561ad6fe2f7a (patch)
tree37590e12ceec5fb2ddb13176ca877136e5aed934
parent66e505fba39dc1c7663e157cc76544f2547b0b17 (diff)
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I69b76dd2aed35fe2038e61eef343ee8d84f053f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120926 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 6f790c8b31360463670439e6857ea64f418ddfbd) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120972 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--svtools/source/svrtf/parrtf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx
index 8b5ad0a0a7cb..c08e366de943 100644
--- a/svtools/source/svrtf/parrtf.cxx
+++ b/svtools/source/svrtf/parrtf.cxx
@@ -570,7 +570,7 @@ void SvRTFParser::ReadBitmapData() { SkipGroup(); }
SvParserState SvRTFParser::CallParser()
{
- char cFirstCh;
+ char cFirstCh(0);
nNextChPos = rInput.Tell();
rInput.ReadChar( cFirstCh );
nNextCh = static_cast<unsigned char>(cFirstCh);