aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-01-19 14:46:48 +1100
committerNeil <nyamatongwe@gmail.com>2014-01-19 14:46:48 +1100
commit9bc61c70c534d999ae0ad01fe56f59a41e7c9f16 (patch)
tree24fed6762ae3ff8ad892e817000075f8dffdcded
parent9ab7cc17fb755f68db3e471cdca236e970ec6e0c (diff)
downloadscintilla-mirror-9bc61c70c534d999ae0ad01fe56f59a41e7c9f16.tar.gz
Avoid warnings for potential read from uninitialised buffer.
-rw-r--r--lexers/LexTCMD.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexTCMD.cxx b/lexers/LexTCMD.cxx
index d4454ea86..9da760542 100644
--- a/lexers/LexTCMD.cxx
+++ b/lexers/LexTCMD.cxx
@@ -107,7 +107,7 @@ static void ColouriseTCMDLine( char *lineBuffer, unsigned int lengthLine, unsign
// Examples are: cd. cd\ echo: echo. path=
bool inString = false; // Used for processing while ""
// Special Keyword Buffer used to determine if the first n characters is a Keyword
- char sKeywordBuffer[260]; // Special Keyword Buffer
+ char sKeywordBuffer[260] = ""; // Special Keyword Buffer
bool sKeywordFound; // Exit Special Keyword for-loop if found
// Skip leading whitespace