mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 04:58:00 +00:00
Fixes the crash thats occuring on windows with no proxy setting.
This commit is contained in:
parent
0a7c01bb4f
commit
2a26ad2c70
@ -118,7 +118,8 @@ nsHTTPHandler::nsHTTPHandler():mProxy(nsnull)
|
|||||||
nsXPIDLCString proxyServer;
|
nsXPIDLCString proxyServer;
|
||||||
PRInt32 proxyPort = -1;
|
PRInt32 proxyPort = -1;
|
||||||
rv = prefs->CopyCharPref("network.proxy.http", getter_Copies(proxyServer));
|
rv = prefs->CopyCharPref("network.proxy.http", getter_Copies(proxyServer));
|
||||||
if (NS_FAILED(rv)) NS_ERROR("Failed to get the HTTP proxy server");
|
if (NS_FAILED(rv))
|
||||||
|
return; //NS_ERROR("Failed to get the HTTP proxy server");
|
||||||
rv = prefs->GetIntPref("network.proxy.http_port",&proxyPort);
|
rv = prefs->GetIntPref("network.proxy.http_port",&proxyPort);
|
||||||
#ifdef DEBUG_gagan
|
#ifdef DEBUG_gagan
|
||||||
printf("Read HTTP proxy = %s:%d\n", (const char*)proxyServer,proxyPort);
|
printf("Read HTTP proxy = %s:%d\n", (const char*)proxyServer,proxyPort);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user