summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM Furkan USLU <mfurkanuslu@yandex.com>2019-08-09 22:48:34 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 12:48:09 (GMT)
commit154c5f794980605fd9456d794650c6e49635a177 (patch)
tree8292e283c7bea0bc8ea19c1f0a648b3f3dffef2f
parent40bbe50e23c06232ccf1c49589dde5dd84e1ac31 (diff)
downloadCMake-154c5f794980605fd9456d794650c6e49635a177.zip
CMake-154c5f794980605fd9456d794650c6e49635a177.tar.gz
CMake-154c5f794980605fd9456d794650c6e49635a177.tar.bz2
ccmake: handle cache entries with empty STRINGS property
Fixes: #19585
-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: