Index: Source/core/html/HTMLEmbedElement.cpp |
diff --git a/Source/core/html/HTMLEmbedElement.cpp b/Source/core/html/HTMLEmbedElement.cpp |
index 10dcf7aa2006f28e1c492cecb2e27b3d6412d348..25855fb0a047adee1865d78a2d110503bd1e4952 100644 |
--- a/Source/core/html/HTMLEmbedElement.cpp |
+++ b/Source/core/html/HTMLEmbedElement.cpp |
@@ -115,7 +115,8 @@ void HTMLEmbedElement::parametersForPlugin(Vector<String>& paramNames, Vector<St |
if (!hasAttributes()) |
return; |
- for (unsigned i = 0; i < attributeCount(); ++i) { |
+ unsigned attributeCount = this->attributeCount(); |
+ for (unsigned i = 0; i < attributeCount; ++i) { |
const Attribute* attribute = attributeItem(i); |
paramNames.append(attribute->localName().string()); |
paramValues.append(attribute->value().string()); |