aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-12-12 16:01:57 +1100
committerNeil <nyamatongwe@gmail.com>2014-12-12 16:01:57 +1100
commit5e577a9d73983a9ec1ba6a8224e59fca1c3691f6 (patch)
tree6adbfec2a405dc9a41fdc830b5130ead60e669a8
parent7f5b671e35cf770321cbf78bfb6caead71f70018 (diff)
downloadscintilla-mirror-5e577a9d73983a9ec1ba6a8224e59fca1c3691f6.tar.gz
Prevent some static analyzer warnings.
-rw-r--r--lexlib/WordList.cxx2
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() {