mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
use empty to check string
This commit is contained in:
@@ -99,11 +99,11 @@ int CProxySetup::showProxySetup()
|
||||
int res = mn->exec(NULL, "");
|
||||
delete mn;
|
||||
|
||||
if (g_settings.softupdate_proxyserver == "")
|
||||
if (g_settings.softupdate_proxyserver.empty())
|
||||
unsetenv("http_proxy");
|
||||
else {
|
||||
std::string proxy = "http://";
|
||||
if (g_settings.softupdate_proxyusername != "")
|
||||
if (!g_settings.softupdate_proxyusername.empty())
|
||||
proxy += g_settings.softupdate_proxyusername + ":" + g_settings.softupdate_proxypassword + "@";
|
||||
proxy += g_settings.softupdate_proxyserver;
|
||||
setenv("http_proxy", proxy.c_str(), 1);
|
||||
|
Reference in New Issue
Block a user