diff options
author | Felipe Pena <felipensp@gmail.com> | 2012-08-19 12:13:48 -0300 |
---|---|---|
committer | Felipe Pena <felipensp@gmail.com> | 2012-08-19 12:13:48 -0300 |
commit | dc1138b102b8fde7a119cb8f7ceb30b26dfdf6b3 (patch) | |
tree | c79f43528fd0d92d7ff42d828068de17d7990864 /ext/dom | |
parent | 8b87c6df8408b95a1bfae4a82958a48e3a220b5a (diff) | |
download | php-git-dc1138b102b8fde7a119cb8f7ceb30b26dfdf6b3.tar.gz |
- Value stored to var is never read
Diffstat (limited to 'ext/dom')
-rw-r--r-- | ext/dom/element.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/element.c b/ext/dom/element.c index 979274176b..33002fa1ee 100644 --- a/ext/dom/element.c +++ b/ext/dom/element.c @@ -832,7 +832,7 @@ PHP_FUNCTION(dom_element_set_attribute_ns) } if (errorcode == 0 && is_xmlns == 0) { - attr = xmlSetNsProp(elemp, nsptr, (xmlChar *)localname, (xmlChar *)value); + xmlSetNsProp(elemp, nsptr, (xmlChar *)localname, (xmlChar *)value); } } else { name_valid = xmlValidateName((xmlChar *) localname, 0); @@ -844,7 +844,7 @@ PHP_FUNCTION(dom_element_set_attribute_ns) if (attr != NULL && attr->type != XML_ATTRIBUTE_DECL) { node_list_unlink(attr->children TSRMLS_CC); } - attr = xmlSetProp(elemp, (xmlChar *)localname, (xmlChar *)value); + xmlSetProp(elemp, (xmlChar *)localname, (xmlChar *)value); } } } |