Fixed a warning in addExtension API.

parent c7dfd6e4
......@@ -198,8 +198,8 @@ sub AddExtension
$elem = shift;
}elsif (2 == @_){
# it means key/value pair is specified.
$elem = XML::LibXML::Element->new(@_[0]);
$elem->appendText(@_[1]);
$elem = XML::LibXML::Element->new($_[0]);
$elem->appendText($_[1]);
}else {
return -1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment