diff options
Diffstat (limited to 'scintilla/lexlib/LexAccessor.h')
-rw-r--r-- | scintilla/lexlib/LexAccessor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scintilla/lexlib/LexAccessor.h b/scintilla/lexlib/LexAccessor.h index 248f1c5..ba4a0e2 100644 --- a/scintilla/lexlib/LexAccessor.h +++ b/scintilla/lexlib/LexAccessor.h @@ -58,6 +58,9 @@ public: validLen(0),
startSeg(0), startPosStyling(0),
documentVersion(pAccess->Version()) {
+ // Prevent warnings by static analyzers about uninitialized buf and styleBuf.
+ buf[0] = 0;
+ styleBuf[0] = 0;
switch (codePage) {
case 65001:
encodingType = encUnicode;
|