aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexAccessor.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-12-05 21:47:23 +1100
committerNeil <nyamatongwe@gmail.com>2014-12-05 21:47:23 +1100
commitae5050fabb65cacde2acd5fbf368470c1f88799c (patch)
treeafa46401d6d5a958d603e2d2c497f021e47f715f /lexlib/LexAccessor.h
parentbfad851459cb44308d42b5889b6495c986a19438 (diff)
downloadscintilla-mirror-ae5050fabb65cacde2acd5fbf368470c1f88799c.tar.gz
Prevent some static analyzer warnings.
Diffstat (limited to 'lexlib/LexAccessor.h')
-rw-r--r--lexlib/LexAccessor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lexlib/LexAccessor.h b/lexlib/LexAccessor.h
index 35e15726c..d04216a95 100644
--- a/lexlib/LexAccessor.h
+++ b/lexlib/LexAccessor.h
@@ -58,6 +58,7 @@ public:
validLen(0),
startSeg(0), startPosStyling(0),
documentVersion(pAccess->Version()) {
+ buf[0] = 0; // Prevent warnings by static analyzers about uninitialized buf.
switch (codePage) {
case 65001:
encodingType = encUnicode;