mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 19:10:36 +00:00
Fixed unitialized value problem.
This commit is contained in:
parent
669b99cbac
commit
83b0609315
@ -462,6 +462,9 @@ nsHTMLFormElement::NamedItem(const nsString& aName, nsIDOMElement** aReturn)
|
||||
result = node->QueryInterface(kIDOMElementIID, (void **)aReturn);
|
||||
NS_RELEASE(node);
|
||||
}
|
||||
else {
|
||||
*aReturn = nsnull;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -462,6 +462,9 @@ nsHTMLFormElement::NamedItem(const nsString& aName, nsIDOMElement** aReturn)
|
||||
result = node->QueryInterface(kIDOMElementIID, (void **)aReturn);
|
||||
NS_RELEASE(node);
|
||||
}
|
||||
else {
|
||||
*aReturn = nsnull;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user