diff options
author | Neil <nyamatongwe@gmail.com> | 2014-12-12 16:01:57 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-12-12 16:01:57 +1100 |
commit | cc68e9e5f61edaebff071e4628c837c5a22b1597 (patch) | |
tree | 0e6d4053052365c6bf4e4b8cc6e80dfe71f3dceb | |
parent | 0f31540d37923361c1c36b81af8271ce58c8cb02 (diff) | |
download | scintilla-mirror-cc68e9e5f61edaebff071e4628c837c5a22b1597.tar.gz |
Prevent some static analyzer warnings.
-rw-r--r-- | lexlib/WordList.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lexlib/WordList.cxx b/lexlib/WordList.cxx index 68b384a95..be7fda505 100644 --- a/lexlib/WordList.cxx +++ b/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() { |