fix possible segfault

This commit is contained in:
BPanther
2019-12-13 03:05:16 +01:00
committed by Thilo Graf
parent ff51f31f51
commit 0e96208010

View File

@@ -1955,7 +1955,8 @@ printf("[neutrino] CScanSetup::%s: logical numbers %d\n", __FUNCTION__, scansett
fe->forceDelSys(fe_config.force_mode); fe->forceDelSys(fe_config.force_mode);
if (fe_config.force_mode == 1) if (fe_config.force_mode == 1)
fe_config.powered = 0; fe_config.powered = 0;
tsp->setActive(fe_config.force_mode != 1); if (tsp)
tsp->setActive(fe_config.force_mode != 1);
ret = true; ret = true;
} }
return ret; return ret;