diff options
author | nyamatongwe <unknown> | 2013-05-08 14:08:18 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-05-08 14:08:18 +1000 |
commit | fb9f49fcaf224a3df72a85ffd37072f0cd282769 (patch) | |
tree | c4654b6dd69f8cff79541b921cca67f80ce85f07 /lexlib/LexerModule.cxx | |
parent | bec5dd1f96911abfe65aded29212bd50a3d89c24 (diff) | |
download | scintilla-mirror-fb9f49fcaf224a3df72a85ffd37072f0cd282769.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]; |