diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-28 10:07:49 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-08-30 11:46:08 +0200 |
commit | 3bc4beb1254df9e68339aad6f4f9646f2c5a1b9f (patch) | |
tree | 73baa5bc4520321cb4abce558b1f926d28179d73 | |
parent | ofz: MemorySanitizer: use-of-uninitialized-value (diff) | |
download | core-3bc4beb1254df9e68339aad6f4f9646f2c5a1b9f.tar.gz core-3bc4beb1254df9e68339aad6f4f9646f2c5a1b9f.zip |
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.stahl@allotropia.de>
-rw-r--r-- | sc/source/filter/xml/XMLConverter.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
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 |