| Index: Source/core/xml/XPathVariableReference.cpp
|
| diff --git a/Source/core/xml/XPathVariableReference.cpp b/Source/core/xml/XPathVariableReference.cpp
|
| index 9d3ca1e145efc92f438ade19c9f2d430332d8228..8eb35c7be262ae0cb2c2707dab4492ae43476cb7 100644
|
| --- a/Source/core/xml/XPathVariableReference.cpp
|
| +++ b/Source/core/xml/XPathVariableReference.cpp
|
| @@ -40,9 +40,11 @@ VariableReference::VariableReference(const String& name)
|
| Value VariableReference::evaluate() const
|
| {
|
| HashMap<String, String>& bindings = evaluationContext().variableBindings;
|
| - if (!bindings.contains(m_name))
|
| - // FIXME: Is this the right thing to do if an unknown variable is referenced?
|
| + if (!bindings.contains(m_name)) {
|
| + // FIXME: Is this the right thing to do if an unknown variable is
|
| + // referenced?
|
| return "";
|
| + }
|
| return bindings.get(m_name);
|
| }
|
|
|
|
|