aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-07-25 17:43:00 +1000
committerNeil <nyamatongwe@gmail.com>2013-07-25 17:43:00 +1000
commitf41794f988b72fd4d7ac905f939ff868ba94e991 (patch)
treefc12354ce053aef134030bb3ebceaf477c0666b4 /src/ScintillaBase.cxx
parent28af18d2d1226689923cadd7030d2f085253e6a3 (diff)
downloadscintilla-mirror-f41794f988b72fd4d7ac905f939ff868ba94e991.tar.gz
Minor changes to avoid warnings from Coverity.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 05768799d..814eac726 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -262,7 +262,7 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) {
ac.lb->SetAverageCharWidth(aveCharWidth);
ac.lb->SetDoubleClickAction(AutoCompleteDoubleClick, this);
- ac.SetList(list);
+ ac.SetList(list ? list : "");
// Fiddle the position of the list so it is right next to the target and wide enough for all its strings
PRectangle rcList = ac.lb->GetDesiredRect();