diff options
author | nyamatongwe <devnull@localhost> | 2013-05-08 14:08:18 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-08 14:08:18 +1000 |
commit | b7db33dd85ee178be818ed681be11e34f0a46ee1 (patch) | |
tree | 4dabfcb7a7506a9524dc4c5249078241be40ea37 /lexlib/LexerModule.cxx | |
parent | 5edb8f8609a85df7fb81e20192487d58157c9069 (diff) | |
download | scintilla-mirror-b7db33dd85ee178be818ed681be11e34f0a46ee1.tar.gz |
Avoid warning.
Diffstat (limited to 'lexlib/LexerModule.cxx')
-rw-r--r-- | lexlib/LexerModule.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlib/LexerModule.cxx b/lexlib/LexerModule.cxx index fc8884dc7..b2b0f0696 100644 --- a/lexlib/LexerModule.cxx +++ b/lexlib/LexerModule.cxx @@ -75,7 +75,7 @@ int LexerModule::GetNumWordLists() const { const char *LexerModule::GetWordListDescription(int index) const { assert(index < GetNumWordLists()); - if (index >= GetNumWordLists()) { + if (!wordListDescriptions || (index >= GetNumWordLists())) { return ""; } else { return wordListDescriptions[index]; |