aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexAccessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'lexlib/LexAccessor.h')
-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;