mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Fix both!
This commit is contained in:
parent
8f0ccb76ad
commit
c878e619f7
@ -622,7 +622,7 @@ nsHTMLAnchorElement::GetHash(nsAWritableString& aHash)
|
||||
result = url->GetRef(getter_Copies(ref));
|
||||
}
|
||||
|
||||
if (result == NS_OK && (nsnull != ref.get()) && ('\0' != *ref)) {
|
||||
if (result == NS_OK && (nsnull != ref.get()) && ('\0' != *ref.get())) {
|
||||
aHash.Assign(PRUnichar('#'));
|
||||
aHash.Append(NS_ConvertASCIItoUCS2(ref));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user