mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
gui/scan_setup:fix override gotoXXLongitude & gotoXXLatitude with uninitialized zapit_lat or zapit_long
This commit is contained in:
@@ -1389,7 +1389,9 @@ void CScanSetup::saveScanSetup()
|
||||
dprintf(DEBUG_NORMAL, "error while saving scan-settings!\n");
|
||||
|
||||
//CServiceManager::getInstance()->SaveMotorPositions();
|
||||
if(zapit_lat[0] != '#')//check if var ok
|
||||
zapitCfg.gotoXXLatitude = strtod(zapit_lat, NULL);
|
||||
if(zapit_long[0] != '#')//check if var ok
|
||||
zapitCfg.gotoXXLongitude = strtod(zapit_long, NULL);
|
||||
|
||||
CZapit::getInstance()->SetConfig(&zapitCfg);
|
||||
|
@@ -128,8 +128,8 @@ bool has_hdd;
|
||||
CInfoClock *InfoClock;
|
||||
int allow_flash = 1;
|
||||
Zapit_config zapitCfg;
|
||||
char zapit_lat[20];
|
||||
char zapit_long[20];
|
||||
char zapit_lat[20]="#";
|
||||
char zapit_long[20]="#";
|
||||
bool autoshift = false;
|
||||
uint32_t scrambled_timer;
|
||||
t_channel_id standby_channel_id;
|
||||
|
Reference in New Issue
Block a user