aboutsummaryrefslogtreecommitdiffhomepage
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
commitf1a878083cc72c8727cb67aa25e450e45164ee44 (patch)
treea8af3aa8eae45c9b6ec4961c518b82aa3efaa1b7
parentc0e2261ef73cee1f91866314f7b9405be4b88867 (diff)
downloadscintilla-mirror-f1a878083cc72c8727cb67aa25e450e45164ee44.tar.gz
Prevent some static analyzer warnings.
-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;