зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1026656 - Fix resolve accessing temporary variable. r=valentin.gosu, r=mcmanus
This commit is contained in:
Родитель
ae23d1ccda
Коммит
6c4361b20f
|
@ -676,8 +676,9 @@ nsDNSService::AsyncResolve(const nsACString &hostname,
|
|||
|
||||
const nsACString *hostPtr = &hostname;
|
||||
|
||||
nsAutoCString strLocalhost(NS_LITERAL_CSTRING("localhost"));
|
||||
if (localDomain) {
|
||||
hostPtr = &(NS_LITERAL_CSTRING("localhost"));
|
||||
hostPtr = &strLocalhost;
|
||||
}
|
||||
|
||||
nsresult rv;
|
||||
|
@ -785,8 +786,9 @@ nsDNSService::Resolve(const nsACString &hostname,
|
|||
|
||||
const nsACString *hostPtr = &hostname;
|
||||
|
||||
nsAutoCString strLocalhost(NS_LITERAL_CSTRING("localhost"));
|
||||
if (localDomain) {
|
||||
hostPtr = &(NS_LITERAL_CSTRING("localhost"));
|
||||
hostPtr = &strLocalhost;
|
||||
}
|
||||
|
||||
nsresult rv;
|
||||
|
|
Загрузка…
Ссылка в новой задаче