wallet_GetHostFile(nsIURI * url) {
wallet_GetHostFile(nsIURI * url, nsString& outHostFile) { outHostFile.Truncate(0);
wallet_GetHostFile(nsIURI * url) {  nsAutoString urlName;  char* host;  nsresult rv = url->GetHost(&host);  if (NS_FAILED(rv)) {    return nsAutoString();  }  urlName.AppendWithConversion(host);  nsCRT::free(host);  char* file;  rv = url->GetPath(&file);  if (NS_FAILED(rv)) {    return nsAutoString();  }  urlName.AppendWithConversion(file);  nsCRT::free(file);  nsAutoString retString;  urlName.Left(retString, urlName.FindChar('?')); /* strip off query string */  return retString;}