зеркало из https://github.com/mozilla/gecko-dev.git
bug #86316: a smoketest blocker. my fix for bug #85271 caused a regression because I accidentally put empty strings in a place where |NULL|s were needed.
This commit is contained in:
Родитель
373ea16a0f
Коммит
3ffd7bfd59
|
@ -152,9 +152,12 @@ public:
|
|||
|
||||
NS_INIT_ISUPPORTS();
|
||||
|
||||
mHost.Adopt(nsCRT::strdup(host));
|
||||
mProxyHost.Adopt(nsCRT::strdup(proxyHost));
|
||||
mProxyType.Adopt(nsCRT::strdup(proxyType));
|
||||
if (host)
|
||||
mHost.Adopt(nsCRT::strdup(host));
|
||||
if (proxyHost)
|
||||
mProxyHost.Adopt(nsCRT::strdup(proxyHost));
|
||||
if (proxyType)
|
||||
mProxyType.Adopt(nsCRT::strdup(proxyType));
|
||||
|
||||
mPort = port == -1 ? DefaultPort() : port;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче