From b3b442bc9cad7f89e7ed921dcaf302624a687bfb Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 7 Dec 2014 11:31:03 +1100 Subject: Prevent some static analyzer warnings. --- lexlib/LexAccessor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lexlib/LexAccessor.h') 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; -- cgit v1.2.3