Bug 1026656 - Fix resolve accessing temporary variable. r=valentin.gosu, r=mcmanus

This commit is contained in:
Nicu Badescu 2014-06-22 15:55:00 -04:00
Родитель ae23d1ccda
Коммит 6c4361b20f
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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;