fixed uninitialized variable in XULContentSinkImpl::Init()

This commit is contained in:
pierre%netscape.com 1999-03-12 23:36:33 +00:00
parent 5f91377e5e
commit f6ea34953b

View File

@ -873,7 +873,7 @@ XULContentSinkImpl::Init(nsIDocument* aDocument, nsIRDFDataSource* aDataSource)
if (rdfRootDoc == nsnull) {
NS_ERROR("Root document of a XUL fragment is not an RDF doc.");
NS_RELEASE(rootDocument);
return rv;
return NS_ERROR_INVALID_ARG;
}
nsCOMPtr<nsIRDFDataSource> docDataSource;