mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 649997 followup. Don't return uninitialized rv. Caught by ms2ger
This commit is contained in:
parent
b17fdf21fa
commit
f42dda77b2
@ -2300,12 +2300,11 @@ nsFormControlList::GetLength(PRUint32* aLength)
|
||||
NS_IMETHODIMP
|
||||
nsFormControlList::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
|
||||
{
|
||||
nsresult rv;
|
||||
nsISupports* item = GetNodeAt(aIndex);
|
||||
if (!item) {
|
||||
*aReturn = nsnull;
|
||||
|
||||
return rv;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return CallQueryInterface(item, aReturn);
|
||||
|
Loading…
Reference in New Issue
Block a user