From d94ba3259b085cc3a558a3396e4a6f7fd72fac6d Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 15 Jul 2022 22:08:49 +0200 Subject: [PATCH] network-service: fix compiler warning Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/69754e7b1fd5ca1b25daebddcd4f77591517b526 Author: vanhofen Date: 2022-07-15 (Fri, 15 Jul 2022) Origin message was: ------------------ - network-service: fix compiler warning --- 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;