aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexOthers.cxx
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2012-08-23 09:24:17 +1000
committernyamatongwe <nyamatongwe@gmail.com>2012-08-23 09:24:17 +1000
commit48eb4e8d252086bfd55d3a16eb2bc8d374525299 (patch)
treee88556b1e1bf8d65507335d0e389434efa7be6c3 /lexers/LexOthers.cxx
parentb8d7f0e6bd5d3bec0eb3adf46cb70a162527e623 (diff)
downloadscintilla-mirror-48eb4e8d252086bfd55d3a16eb2bc8d374525299.tar.gz
Initialize strings to avoid warnings from Clang Analyze.
Diffstat (limited to 'lexers/LexOthers.cxx')
-rw-r--r--lexers/LexOthers.cxx2
1 files changed, 1 insertions, 1 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;