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
commitb3b442bc9cad7f89e7ed921dcaf302624a687bfb (patch)
tree09db3b520a2b8bb1165a64f0b5115fcdc6c42b73
parente4b87d6fbb4239e6a8123211b5570059fd9827ac (diff)
downloadscintilla-mirror-b3b442bc9cad7f89e7ed921dcaf302624a687bfb.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;