From b4a281af53efa0c36ee1770e6cf4d800be77a6d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 8 Jan 2022 14:44:11 +0000 Subject: [PATCH] ofz#43818 delete of uninitialized pointer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I91509915c18c3e9b54cb3047462b9dd9a8c7a46b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128141 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- lotuswordpro/source/filter/lwpsdwdrawheader.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lotuswordpro/source/filter/lwpsdwdrawheader.hxx b/lotuswordpro/source/filter/lwpsdwdrawheader.hxx index 3153b837aaba..13696f453a74 100644 --- a/lotuswordpro/source/filter/lwpsdwdrawheader.hxx +++ b/lotuswordpro/source/filter/lwpsdwdrawheader.hxx @@ -271,6 +271,18 @@ struct SdwTextBoxRecord sal_Int16 nTextRotation; sal_Int16 nTextExtraSpacing; sal_uInt8* pTextString; + SdwTextBoxRecord() + : nTextWidth(0) + , nTextHeight(0) + , nTextSize(0) + , tmpTextFaceName{} + , nTextAttrs(0) + , nTextCharacterSet(0) + , nTextRotation(0) + , nTextExtraSpacing(0) + , pTextString(nullptr) + { + } }; struct SdwFMPATH