From f1a878083cc72c8727cb67aa25e450e45164ee44 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 5 Dec 2014 21:47:23 +1100 Subject: Prevent some static analyzer warnings. --- lexlib/LexAccessor.h | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3