diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index b335afb79..eb345732a 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -822,13 +822,12 @@ int CScanSetup::showScanMenuSatFind() void CScanSetup::addScanMenuTempSat(CMenuWidget *temp_sat, sat_config_t & satconfig) { temp_sat->addIntroItems(); - CMenuOptionNumberChooser *diseqc; - CMenuOptionNumberChooser *comm; - CMenuOptionNumberChooser *uncomm; - CMenuOptionNumberChooser *unilnb; - CMenuOptionNumberChooser *motor; - CMenuOptionChooser *usals; - CMenuForwarder *mf; + CMenuOptionNumberChooser *diseqc = NULL; + CMenuOptionNumberChooser *comm = NULL; + CMenuOptionNumberChooser *uncomm = NULL; + CMenuOptionNumberChooser *unilnb = NULL; + CMenuOptionNumberChooser *motor = NULL; + CMenuOptionChooser *usals = NULL; bool unicable = (dmode == DISEQC_UNICABLE); if (!unicable) { @@ -864,7 +863,7 @@ void CScanSetup::addScanMenuTempSat(CMenuWidget *temp_sat, sat_config_t & satcon temp_sat->addItem(unilnb); } - mf = new CMenuDForwarder(LOCALE_SATSETUP_LOFL, true, lofL->getValue(), lofL); + CMenuForwarder *mf = new CMenuDForwarder(LOCALE_SATSETUP_LOFL, true, lofL->getValue(), lofL); mf->setHint("", LOCALE_MENU_HINT_SCAN_LOFL); temp_sat->addItem(mf); mf = new CMenuDForwarder(LOCALE_SATSETUP_LOFH, true, lofH->getValue(), lofH);