aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexerModule.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-05-08 14:08:18 +1000
committernyamatongwe <devnull@localhost>2013-05-08 14:08:18 +1000
commitb7db33dd85ee178be818ed681be11e34f0a46ee1 (patch)
tree4dabfcb7a7506a9524dc4c5249078241be40ea37 /lexlib/LexerModule.cxx
parent5edb8f8609a85df7fb81e20192487d58157c9069 (diff)
downloadscintilla-mirror-b7db33dd85ee178be818ed681be11e34f0a46ee1.tar.gz
Avoid warning.
Diffstat (limited to 'lexlib/LexerModule.cxx')
-rw-r--r--lexlib/LexerModule.cxx2
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];