Fix both!

This commit is contained in:
waterson%netscape.com 2001-07-18 20:17:09 +00:00
parent 8f0ccb76ad
commit c878e619f7

View File

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