From ad7a82dd1ce1e3cc6c5fefc5fb68d18d38b5163b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 23 Aug 2012 09:24:17 +1000 Subject: Initialize strings to avoid warnings from Clang Analyze. --- lexers/LexOthers.cxx | 2 +- lexers/LexYAML.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lexers/LexOthers.cxx b/lexers/LexOthers.cxx index ee5521bac..77c156a3c 100644 --- a/lexers/LexOthers.cxx +++ b/lexers/LexOthers.cxx @@ -560,7 +560,7 @@ static void ColouriseDiffLine(char *lineBuffer, int endLine, Accessor &styler) { } static void ColouriseDiffDoc(unsigned int startPos, int length, int, WordList *[], Accessor &styler) { - char lineBuffer[DIFF_BUFFER_START_SIZE]; + char lineBuffer[DIFF_BUFFER_START_SIZE] = ""; styler.StartAt(startPos); styler.StartSegment(startPos); unsigned int linePos = 0; diff --git a/lexers/LexYAML.cxx b/lexers/LexYAML.cxx index 727e8af8f..c808d9743 100644 --- a/lexers/LexYAML.cxx +++ b/lexers/LexYAML.cxx @@ -169,7 +169,7 @@ static void ColouriseYAMLLine( } static void ColouriseYAMLDoc(unsigned int startPos, int length, int, WordList *keywordLists[], Accessor &styler) { - char lineBuffer[1024]; + char lineBuffer[1024] = ""; styler.StartAt(startPos); styler.StartSegment(startPos); unsigned int linePos = 0; -- cgit v1.2.3