mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 23:43:37 +00:00
avoid an uninitialized memory access
This commit is contained in:
parent
14fb9dbd1f
commit
79ba7c62b3
@ -4818,7 +4818,7 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
|
||||
// so here we see if it is a select and then we get the number of options
|
||||
nsCOMPtr<nsIDOMHTMLSelectElement> selectElement;
|
||||
|
||||
nsresult result;
|
||||
nsresult result = NS_ERROR_FAILURE;
|
||||
if (aContainer) {
|
||||
result = aContainer->QueryInterface(nsCOMTypeInfo<nsIDOMHTMLSelectElement>::GetIID(),
|
||||
(void**)getter_AddRefs(selectElement));
|
||||
|
@ -4818,7 +4818,7 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
|
||||
// so here we see if it is a select and then we get the number of options
|
||||
nsCOMPtr<nsIDOMHTMLSelectElement> selectElement;
|
||||
|
||||
nsresult result;
|
||||
nsresult result = NS_ERROR_FAILURE;
|
||||
if (aContainer) {
|
||||
result = aContainer->QueryInterface(nsCOMTypeInfo<nsIDOMHTMLSelectElement>::GetIID(),
|
||||
(void**)getter_AddRefs(selectElement));
|
||||
|
Loading…
x
Reference in New Issue
Block a user