From ee715f20fd678120d416202e3225b0343ee24b16 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 19 Jan 2014 14:46:48 +1100 Subject: Avoid warnings for potential read from uninitialised buffer. --- lexers/LexTCMD.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3