More error checking for nsFTPChannel::Init()

This commit is contained in:
mcafee%netscape.com 1999-07-17 03:02:22 +00:00
parent 03ab1963e3
commit 2d83f3faab

View File

@ -94,6 +94,10 @@ nsFTPChannel::Init(const char* verb, nsIURI* uri, nsIEventSinkGetter* getter,
if (mConnected)
return NS_ERROR_FAILURE;
if (!getter) {
return NS_ERROR_FAILURE;
}
mUrl = uri;
NS_ADDREF(mUrl);