char *cookie = COOKIE_GetCookie((char *)(const char *)spec); if (nsnull != cookie) { aCookie.SetString(cookie); nsCRT::free(cookie); } else {  aCookie.SetString(""); }
*aCookie = COOKIE_GetCookie((char *)(const char *)spec);
nsCookieService::GetCookieString(nsIURI *aURL, nsString& aCookie) {  nsXPIDLCString spec;  nsresult rv = aURL->GetSpec(getter_Copies(spec));  if (NS_FAILED(rv)) return rv;  char *cookie = COOKIE_GetCookie((char *)(const char *)spec);  if (nsnull != cookie) {    aCookie.SetString(cookie);    nsCRT::free(cookie);  } else {    // No Cookie isn't an error condition.    aCookie.SetString("");  }  return NS_OK;}