diff options
| -rw-r--r-- | lexers/LexCOBOL.cxx | 2 | ||||
| -rw-r--r-- | lexers/LexNsis.cxx | 2 | ||||
| -rw-r--r-- | lexers/LexTCMD.cxx | 2 | 
3 files changed, 5 insertions, 1 deletions
| diff --git a/lexers/LexCOBOL.cxx b/lexers/LexCOBOL.cxx index d689762ec..a937690d8 100644 --- a/lexers/LexCOBOL.cxx +++ b/lexers/LexCOBOL.cxx @@ -90,6 +90,8 @@ static int classifyWordCOBOL(unsigned int start, unsigned int end, /*WordList &k      WordList& c_keywords = *keywordlists[2];      char s[100]; +    s[0] = '\0'; +    s[1] = '\0';      getRange(start, end, styler, s, sizeof(s));      char chAttr = SCE_C_IDENTIFIER; diff --git a/lexers/LexNsis.cxx b/lexers/LexNsis.cxx index 599ccfbbf..970851475 100644 --- a/lexers/LexNsis.cxx +++ b/lexers/LexNsis.cxx @@ -180,6 +180,8 @@ static int classifyWordNsis(unsigned int start, unsigned int end, WordList *keyw      bUserVars = true;  	char s[100]; +	s[0] = '\0'; +	s[1] = '\0';  	WordList &Functions = *keywordLists[0];  	WordList &Variables = *keywordLists[1]; diff --git a/lexers/LexTCMD.cxx b/lexers/LexTCMD.cxx index 6864612ac..041814615 100644 --- a/lexers/LexTCMD.cxx +++ b/lexers/LexTCMD.cxx @@ -445,7 +445,7 @@ static void FoldTCMDDoc(unsigned int startPos, int length, int, WordList *[], Ac  	int level = styler.LevelAt(line);  	int levelIndent = 0;  	unsigned int endPos = startPos + length; -	char s[16]; +	char s[16] = "";      char chPrev = styler.SafeGetCharAt(startPos - 1); | 
