mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
network-service: fix compiler warning
Origin commit data
------------------
Commit: 69754e7b1f
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-07-15 (Fri, 15 Jul 2022)
Origin message was:
------------------
- network-service: fix compiler warning
This commit is contained in:
@@ -180,8 +180,7 @@ int CNetworkServiceSetup::showNetworkServiceSetup()
|
|||||||
items[i] = new CNetworkService(services[i].cmd, services[i].options);
|
items[i] = new CNetworkService(services[i].cmd, services[i].options);
|
||||||
services[i].enabled = items[i]->Enabled();
|
services[i].enabled = items[i]->Enabled();
|
||||||
|
|
||||||
std::string exec = find_executable(services[i].cmd.c_str());
|
active = !find_executable(services[i].cmd.c_str()).empty();
|
||||||
active = !exec.empty();
|
|
||||||
|
|
||||||
if ((services[i].name == "Telnet") && useinetd)
|
if ((services[i].name == "Telnet") && useinetd)
|
||||||
active = false;
|
active = false;
|
||||||
|
Reference in New Issue
Block a user