sc/source/filter/xml/XMLConverter.hxx | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit 3bc4beb1254df9e68339aad6f4f9646f2c5a1b9f Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Aug 28 10:07:49 2021 +0100 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Mon Aug 30 11:46:08 2021 +0200 ofz: MemorySanitizer: use-of-uninitialized-value Change-Id: I136816837eddcb1bf81c23b6f4fcfa65e9335629 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121156 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sc/source/filter/xml/XMLConverter.hxx b/sc/source/filter/xml/XMLConverter.hxx index 2f8c08383353..cbe5ec8b4b0f 100644 --- a/sc/source/filter/xml/XMLConverter.hxx +++ b/sc/source/filter/xml/XMLConverter.hxx @@ -128,6 +128,14 @@ struct ScXMLConditionParseResult OUString maOperand1; /// First operand of the token or comparison value. OUString maOperand2; /// Second operand of 'between' conditions. sal_Int32 mnEndIndex; /// Index of first character following the condition. + + ScXMLConditionParseResult() + : meToken(XML_COND_INVALID) + , meValidation(css::sheet::ValidationType_ANY) + , meOperator(css::sheet::ConditionOperator_NONE) + , mnEndIndex(-1) + { + } }; namespace ScXMLConditionHelper