diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index be6bc57df..512dcd6ee 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -796,7 +796,7 @@ void cmCursesMainForm::FillCacheManagerFromUI() void cmCursesMainForm::HandleInput() { - int x,y; + int x=0,y=0; if (!m_Form) { @@ -844,7 +844,7 @@ void cmCursesMainForm::HandleInput() currentWidget = reinterpret_cast(field_userptr( currentField)); - bool widgetHandled; + bool widgetHandled=false; if ( m_SearchMode ) {