summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/syntaxhighlight.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/syntaxhighlight.cxx')
-rw-r--r--comphelper/source/misc/syntaxhighlight.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx
index 3fb5bc057094..b3f62a70365b 100644
--- a/comphelper/source/misc/syntaxhighlight.cxx
+++ b/comphelper/source/misc/syntaxhighlight.cxx
@@ -268,7 +268,7 @@ namespace
class SyntaxHighlighter::Tokenizer
{
// Character information tables
- CharFlags aCharTypeTab[256];
+ CharFlags aCharTypeTab[256] = {};
// Auxiliary function: testing of the character flags
bool testCharFlags(sal_Unicode c, CharFlags nTestFlags) const;
@@ -590,8 +590,6 @@ bool SyntaxHighlighter::Tokenizer::getNextToken(const sal_Unicode*& pos, /*out*/
SyntaxHighlighter::Tokenizer::Tokenizer( HighlighterLanguage aLang ): aLanguage(aLang)
{
- memset( aCharTypeTab, 0, sizeof( aCharTypeTab ) );
-
// Fill character table
sal_uInt16 i;