summaryrefslogtreecommitdiff
path: root/ext/dom/domimplementation.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2011-08-08 13:45:18 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2011-08-08 13:45:18 (GMT)
commitbfdd53cd045ceff446f63ca0b97102a1a299d1ba (patch)
tree4c2a92b795fe2f0d584a957fdd5bacd3e7649064 /ext/dom/domimplementation.c
parent0c1516f1741fcab7dd543d1469df6ff35d72d734 (diff)
downloadphp-bfdd53cd045ceff446f63ca0b97102a1a299d1ba.tar.gz
Removal of deadcode identified by coverity
Diffstat (limited to 'ext/dom/domimplementation.c')
-rw-r--r--ext/dom/domimplementation.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/dom/domimplementation.c b/ext/dom/domimplementation.c
index c7ad1d7..a130cf4 100644
--- a/ext/dom/domimplementation.c
+++ b/ext/dom/domimplementation.c
@@ -91,7 +91,6 @@ Since: DOM Level 2
*/
PHP_METHOD(domimplementation, createDocumentType)
{
- zval *rv = NULL;
xmlDtd *doctype;
int ret, name_len = 0, publicid_len = 0, systemid_len = 0;
char *name = NULL, *publicid = NULL, *systemid = NULL;
@@ -141,7 +140,7 @@ PHP_METHOD(domimplementation, createDocumentType)
RETURN_FALSE;
}
- DOM_RET_OBJ(rv, (xmlNodePtr) doctype, &ret, NULL);
+ DOM_RET_OBJ((xmlNodePtr) doctype, &ret, NULL);
}
/* }}} end dom_domimplementation_create_document_type */
@@ -151,7 +150,7 @@ Since: DOM Level 2
*/
PHP_METHOD(domimplementation, createDocument)
{
- zval *node = NULL, *rv = NULL;
+ zval *node = NULL;
xmlDoc *docp;
xmlNode *nodep;
xmlDtdPtr doctype = NULL;
@@ -238,7 +237,7 @@ PHP_METHOD(domimplementation, createDocument)
xmlFree(localname);
}
- DOM_RET_OBJ(rv, (xmlNodePtr) docp, &ret, NULL);
+ DOM_RET_OBJ((xmlNodePtr) docp, &ret, NULL);
if (doctobj != NULL) {
doctobj->document = ((dom_object *)((php_libxml_node_ptr *)docp->_private)->_private)->document;