From c661eaff4eb004a1cbb920d071ca13ea19ec3eea Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 17 Feb 2012 20:47:00 +1100 Subject: Ensure start of string always initialized to avoid warning from Xcode analyze. --- lexers/LexNsis.cxx | 1 + 1 file changed, 1 insertion(+) 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( styler[ start + i ] ); -- cgit v1.2.3