diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2012-02-17 20:47:00 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2012-02-17 20:47:00 +1100 |
commit | b596362d7e60142f8bb07764d73f327e94afb623 (patch) | |
tree | cbb2066badde997376463a02a6edf30979e3faf2 | |
parent | b686ba611f0d50e9a1b33c8d6cdc2ef714ea3c77 (diff) | |
download | scintilla-mirror-b596362d7e60142f8bb07764d73f327e94afb623.tar.gz |
Ensure start of string always initialized to avoid warning from Xcode analyze.
-rw-r--r-- | lexers/LexNsis.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lexers/LexNsis.cxx b/lexers/LexNsis.cxx index cd74d540d..599ccfbbf 100644 --- a/lexers/LexNsis.cxx +++ b/lexers/LexNsis.cxx @@ -142,6 +142,7 @@ static int calculateFoldNsis(unsigned int start, unsigned int end, int foldlevel bIgnoreCase = true; char s[20]; // The key word we are looking for has atmost 13 characters + s[0] = '\0'; for (unsigned int i = 0; i < end - start + 1 && i < 19; i++) { s[i] = static_cast<char>( styler[ start + i ] ); |