From 1ffd91ebee2d2d772a6a5bd5a08eac5d4f32f351 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 15 Jul 2022 22:08:49 +0200 Subject: [PATCH] - network-service: fix compiler warning Signed-off-by: Thilo Graf --- src/gui/network_service.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/network_service.cpp b/src/gui/network_service.cpp index 241911bc4..aef838542 100644 --- a/src/gui/network_service.cpp +++ b/src/gui/network_service.cpp @@ -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;