diff options
author | Brad King <brad.king@kitware.com> | 2003-01-22 15:33:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-01-22 15:33:34 (GMT) |
commit | 486454ef781a441334e876eef0c5d058526e97d4 (patch) | |
tree | ab1a52166bbf41fddbb533497a7c44d1e917cfe5 /Source/CursesDialog/cmCursesMainForm.cxx | |
parent | c7b5bb6d2c11aa18d35670eb6c737ac70646efe3 (diff) | |
download | CMake-486454ef781a441334e876eef0c5d058526e97d4.zip CMake-486454ef781a441334e876eef0c5d058526e97d4.tar.gz CMake-486454ef781a441334e876eef0c5d058526e97d4.tar.bz2 |
BUG: Fixed crash when CMAKE_ROOT cannot be found.
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.cxx')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index f13d4a2..26e3bcc 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -1058,11 +1058,16 @@ void cmCursesMainForm::HandleInput() } } -void cmCursesMainForm::LoadCache(const char *) +int cmCursesMainForm::LoadCache(const char *) { - m_CMakeInstance->LoadCache(); + int r = m_CMakeInstance->LoadCache(); + if(r < 0) + { + return r; + } m_CMakeInstance->SetCacheArgs(m_Args); + return r; } |