aBuf = PL_strdup("");
aBuf = nsnull;
nsHTMLLinkElement::GetHrefCString(char* &aBuf){  // Get href= attribute (relative URL).  nsAutoString relURLSpec;  if (NS_CONTENT_ATTR_HAS_VALUE ==      mInner.GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::href, relURLSpec)) {    // Get base URL.    nsCOMPtr<nsIURI> baseURL;    mInner.GetBaseURL(*getter_AddRefs(baseURL));    if (baseURL) {      // Get absolute URL.      NS_MakeAbsoluteURIWithCharset(&aBuf, relURLSpec, mInner.mDocument, baseURL,                                    nsHTMLUtils::IOService, nsHTMLUtils::CharsetMgr);    }    else {      // Absolute URL is same as relative URL.      aBuf = relURLSpec.ToNewUTF8String();    }  }  else {    // Absolute URL is empty because we have no HREF.    aBuf = PL_strdup(""); // use a dummy empty string  }  return NS_OK;}