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 | 5e577a9d73983a9ec1ba6a8224e59fca1c3691f6 (patch) | |
tree | 6adbfec2a405dc9a41fdc830b5130ead60e669a8 /lexlib/WordList.cxx | |
parent | 7f5b671e35cf770321cbf78bfb6caead71f70018 (diff) | |
download | scintilla-mirror-5e577a9d73983a9ec1ba6a8224e59fca1c3691f6.tar.gz |
Prevent some static analyzer warnings.
Diffstat (limited to 'lexlib/WordList.cxx')
-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() { |