diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-08-08 19:09:10 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-08-08 19:09:10 +1000 | 
| commit | 6e5804b4ecfbfd0fe6ac4228c40ef121c96452ab (patch) | |
| tree | 93048bf19dc63544f463bb2314189127c950bb88 | |
| parent | 08da59a992ebdd1d19614073ae39d929636270fc (diff) | |
| download | scintilla-mirror-6e5804b4ecfbfd0fe6ac4228c40ef121c96452ab.tar.gz | |
Avoid warnings for uninitialized strings.
| -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); | 
