sc/source/filter/xml/XMLConverter.hxx | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit 243d2f3e93b172488ea8309517773a9dfa73d646 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:48:33 2021 +0200 ofz: MemorySanitizer: use-of-uninitialized-value Change-Id: I136816837eddcb1bf81c23b6f4fcfa65e9335629 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121155 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 52d0f2ba77cc..76e0fcad8c11 100644 --- a/sc/source/filter/xml/XMLConverter.hxx +++ b/sc/source/filter/xml/XMLConverter.hxx @@ -127,6 +127,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