diff options
author | Neil <nyamatongwe@gmail.com> | 2014-12-07 11:31:03 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-12-07 11:31:03 +1100 |
commit | b935ffff12acdef1aeefeb056680f00d28f0d594 (patch) | |
tree | 5f91cc86e3a604a17ac75cf4a1b6da716c99f2b6 | |
parent | b24b40480828df8ab7c47f36112e8ba51046ce69 (diff) | |
download | scintilla-mirror-b935ffff12acdef1aeefeb056680f00d28f0d594.tar.gz |
Prevent some static analyzer warnings.
-rw-r--r-- | lexlib/LexAccessor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lexlib/LexAccessor.h b/lexlib/LexAccessor.h index d04216a95..8e3455d0c 100644 --- a/lexlib/LexAccessor.h +++ b/lexlib/LexAccessor.h @@ -58,7 +58,9 @@ public: validLen(0), startSeg(0), startPosStyling(0), documentVersion(pAccess->Version()) { - buf[0] = 0; // Prevent warnings by static analyzers about uninitialized buf. + // Prevent warnings by static analyzers about uninitialized buf and styleBuf. + buf[0] = 0; + styleBuf[0] = 0; switch (codePage) { case 65001: encodingType = encUnicode; |