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:
vanhofen
2022-07-15 22:08:49 +02:00
parent 3b37cacd89
commit d94ba3259b

View File

@@ -180,8 +180,7 @@ int CNetworkServiceSetup::showNetworkServiceSetup()
items[i] = new CNetworkService(services[i].cmd, services[i].options);
services[i].enabled = items[i]->Enabled();
std::string exec = find_executable(services[i].cmd.c_str());
active = !exec.empty();
active = !find_executable(services[i].cmd.c_str()).empty();
if ((services[i].name == "Telnet") && useinetd)
active = false;