summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-20 12:57:28 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-08-20 12:57:37 (GMT)
commit4aff5a0ffa71854f078b39451f097ddf7e7a878a (patch)
tree761119d3805533043c206b1878ad07f780f9bbcf /Source/CursesDialog
parent6cf8883a8577514dac3774b7cc9251fe90fa85d7 (diff)
parent154c5f794980605fd9456d794650c6e49635a177 (diff)
downloadCMake-4aff5a0ffa71854f078b39451f097ddf7e7a878a.zip
CMake-4aff5a0ffa71854f078b39451f097ddf7e7a878a.tar.gz
CMake-4aff5a0ffa71854f078b39451f097ddf7e7a878a.tar.bz2
Merge topic 'ccmake-crash-on-empty-strings-property'
154c5f7949 ccmake: handle cache entries with empty STRINGS property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3678
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesOptionsWidget.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesOptionsWidget.cxx b/Source/CursesDialog/cmCursesOptionsWidget.cxx
index a8c4933..eb773ad 100644
--- a/Source/CursesDialog/cmCursesOptionsWidget.cxx
+++ b/Source/CursesDialog/cmCursesOptionsWidget.cxx
@@ -23,6 +23,9 @@ cmCursesOptionsWidget::cmCursesOptionsWidget(int width, int height, int left,
bool cmCursesOptionsWidget::HandleInput(int& key, cmCursesMainForm* /*fm*/,
WINDOW* w)
{
+ if (this->Options.empty()) {
+ return false;
+ }
switch (key) {
case 10: // 10 == enter
case KEY_ENTER: