Bug 534162: Make sure to initialize local variable 'rv' in nsXHTMLParanoidFragmentSink::AddAttributes. r=jst

This commit is contained in:
Daniel Holbert 2009-12-12 22:27:30 -08:00
parent 87d5852ba4
commit 3240fbd2b2

View File

@ -609,7 +609,7 @@ nsresult
nsXHTMLParanoidFragmentSink::AddAttributes(const PRUnichar** aAtts,
nsIContent* aContent)
{
nsresult rv;
nsresult rv = NS_OK;
// use this to check for safe URIs in the few attributes that allow them
nsIScriptSecurityManager* secMan = nsContentUtils::GetSecurityManager();