check return value. it's correct and it fixes a warning too.

This commit is contained in:
sspitzer%netscape.com 1999-07-07 07:26:26 +00:00
parent 5cb145cb30
commit 268c0e11b6

View File

@ -2022,6 +2022,7 @@ NS_IMETHODIMP nsProfile::GetCookie(nsString& aCookie)
nsIURI *aURL;
nsresult rv = NS_NewURL(&aURL, PREG_URL);
if (NS_FAILED(rv)) return rv;
nsresult res = nsServiceManager::GetService(kNetServiceCID,
kINetServiceIID,