fix crash on quickfill/safefill when not connected to internet

This commit is contained in:
morse%netscape.com 1999-08-08 17:34:25 +00:00
parent 7504cb1728
commit 90ff4df193

View File

@ -1958,7 +1958,10 @@ wallet_InitializeCurrentURL(nsIDocument * doc) {
#else
const char* host;
#endif
url->GetHost(&host);
nsresult rv = url->GetHost(&host);
if (NS_FAILED(rv)) {
return;
}
nsAutoString urlName = nsAutoString(host);
#ifdef NECKO
nsCRT::free(host);