Code cleanup
This commit is contained in:
parent
a9007667be
commit
2b3895cdd0
@ -753,8 +753,8 @@ int surfer_config_load(Surfer * surfer)
|
||||
free(filename);
|
||||
_config_load_string(surfer->config, NULL, "homepage",
|
||||
&surfer->homepage);
|
||||
if((p = getenv("http_proxy")) != NULL && sscanf(p,
|
||||
"http://%255[^:]:%u", buf, &port) == 2)
|
||||
if((p = getenv("http_proxy")) != NULL && sscanf(p, "http://%255[^:]:%u",
|
||||
buf, &port) == 2)
|
||||
{
|
||||
surfer->proxy_type = SPT_HTTP;
|
||||
buf[sizeof(buf) - 1] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user