From 0e96208010ab709694e5b87d12195c14de3b1e20 Mon Sep 17 00:00:00 2001 From: BPanther Date: Fri, 13 Dec 2019 03:05:16 +0100 Subject: [PATCH] fix possible segfault --- src/gui/scan_setup.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index 8f1c352eb..da6b458e2 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -1955,7 +1955,8 @@ printf("[neutrino] CScanSetup::%s: logical numbers %d\n", __FUNCTION__, scansett fe->forceDelSys(fe_config.force_mode); if (fe_config.force_mode == 1) fe_config.powered = 0; - tsp->setActive(fe_config.force_mode != 1); + if (tsp) + tsp->setActive(fe_config.force_mode != 1); ret = true; } return ret;