aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2012-02-17 20:47:00 +1100
committernyamatongwe <nyamatongwe@gmail.com>2012-02-17 20:47:00 +1100
commitc661eaff4eb004a1cbb920d071ca13ea19ec3eea (patch)
tree8c47e22588cc83d0f343d4f97f6579d90e4ff7ff
parent4a995324b0693cd9f00cfdd2bbf7d9b375c5f21e (diff)
downloadscintilla-mirror-c661eaff4eb004a1cbb920d071ca13ea19ec3eea.tar.gz
Ensure start of string always initialized to avoid warning from Xcode analyze.
-rw-r--r--lexers/LexNsis.cxx1
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 ] );