avoid an uninitialized memory access

This commit is contained in:
morse%netscape.com 1999-08-08 19:16:09 +00:00
Родитель 14fb9dbd1f
Коммит 79ba7c62b3
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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));