diff options
author | XhmikosR <xhmikosr@gmail.com> | 2015-01-20 12:10:20 +0200 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2015-01-20 12:10:52 +0200 |
commit | 346c0695d37868c8d099cc34b29317f9862109e4 (patch) | |
tree | 95cd5afe56e98f186fdd30f4aefdfe93515f202e /scintilla/lexlib | |
parent | 878af2fe5c730469f009e8fe6f234509a5ffb0ac (diff) | |
download | notepad2-mod-346c0695d37868c8d099cc34b29317f9862109e4.zip notepad2-mod-346c0695d37868c8d099cc34b29317f9862109e4.tar.gz notepad2-mod-346c0695d37868c8d099cc34b29317f9862109e4.tar.bz2 |
Update Scintilla to v3.5.3.4.2.25.940
Diffstat (limited to 'scintilla/lexlib')
-rw-r--r-- | scintilla/lexlib/LexAccessor.h | 3 | ||||
-rw-r--r-- | scintilla/lexlib/WordList.cxx | 2 |
2 files changed, 5 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;
diff --git a/scintilla/lexlib/WordList.cxx b/scintilla/lexlib/WordList.cxx index ce94b52..7ac00ad 100644 --- a/scintilla/lexlib/WordList.cxx +++ b/scintilla/lexlib/WordList.cxx @@ -69,6 +69,8 @@ static char **ArrayFromWordList(char *wordlist, int *len, bool onlyLineEnds = fa WordList::WordList(bool onlyLineEnds_) :
words(0), list(0), len(0), onlyLineEnds(onlyLineEnds_) {
+ // Prevent warnings by static analyzers about uninitialized starts.
+ starts[0] = -1;
}
WordList::~WordList() {
|