diff --git a/content/html/content/src/nsHTMLOptionElement.cpp b/content/html/content/src/nsHTMLOptionElement.cpp index 13c788b29bb3..20bee4aea086 100644 --- a/content/html/content/src/nsHTMLOptionElement.cpp +++ b/content/html/content/src/nsHTMLOptionElement.cpp @@ -529,7 +529,7 @@ nsHTMLOptionElement::SetText(const nsString& aText) result = NS_NewTextNode(&text); if (NS_OK == result) { nsIDOMText* domtext; - result = text->QueryInterface(kIDOMTextIID, (void**)&tc); + result = text->QueryInterface(kIDOMTextIID, (void**)&domtext); if (NS_OK == result) { result = domtext->SetData(aText); if (NS_SUCCEEDED(result)) { diff --git a/layout/html/content/src/nsHTMLOptionElement.cpp b/layout/html/content/src/nsHTMLOptionElement.cpp index 13c788b29bb3..20bee4aea086 100644 --- a/layout/html/content/src/nsHTMLOptionElement.cpp +++ b/layout/html/content/src/nsHTMLOptionElement.cpp @@ -529,7 +529,7 @@ nsHTMLOptionElement::SetText(const nsString& aText) result = NS_NewTextNode(&text); if (NS_OK == result) { nsIDOMText* domtext; - result = text->QueryInterface(kIDOMTextIID, (void**)&tc); + result = text->QueryInterface(kIDOMTextIID, (void**)&domtext); if (NS_OK == result) { result = domtext->SetData(aText); if (NS_SUCCEEDED(result)) {