aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-12-07 11:31:03 +1100
committerNeil <nyamatongwe@gmail.com>2014-12-07 11:31:03 +1100
commitb935ffff12acdef1aeefeb056680f00d28f0d594 (patch)
tree5f91cc86e3a604a17ac75cf4a1b6da716c99f2b6
parentb24b40480828df8ab7c47f36112e8ba51046ce69 (diff)
downloadscintilla-mirror-b935ffff12acdef1aeefeb056680f00d28f0d594.tar.gz
Prevent some static analyzer warnings.
-rw-r--r--lexlib/LexAccessor.h4
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;