diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2011-08-08 13:45:18 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2011-08-08 13:45:18 +0000 |
commit | bfdd53cd045ceff446f63ca0b97102a1a299d1ba (patch) | |
tree | 4c2a92b795fe2f0d584a957fdd5bacd3e7649064 /ext/dom/namednodemap.c | |
parent | 0c1516f1741fcab7dd543d1469df6ff35d72d734 (diff) | |
download | php-git-bfdd53cd045ceff446f63ca0b97102a1a299d1ba.tar.gz |
Removal of deadcode identified by coverity
Diffstat (limited to 'ext/dom/namednodemap.c')
-rw-r--r-- | ext/dom/namednodemap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/dom/namednodemap.c b/ext/dom/namednodemap.c index 963371a8e5..87842f880e 100644 --- a/ext/dom/namednodemap.c +++ b/ext/dom/namednodemap.c @@ -126,7 +126,7 @@ Since: */ PHP_FUNCTION(dom_namednodemap_get_named_item) { - zval *id, *rv = NULL; + zval *id; int ret, namedlen=0; dom_object *intern; xmlNodePtr itemnode = NULL; @@ -166,7 +166,7 @@ PHP_FUNCTION(dom_namednodemap_get_named_item) } if (itemnode) { - DOM_RET_OBJ(rv, itemnode, &ret, objmap->baseobj); + DOM_RET_OBJ(itemnode, &ret, objmap->baseobj); return; } else { RETVAL_NULL(); @@ -200,7 +200,7 @@ Since: */ PHP_FUNCTION(dom_namednodemap_item) { - zval *id, *rv = NULL; + zval *id; long index; int ret; dom_object *intern; @@ -243,7 +243,7 @@ PHP_FUNCTION(dom_namednodemap_item) } if (itemnode) { - DOM_RET_OBJ(rv, itemnode, &ret, objmap->baseobj); + DOM_RET_OBJ(itemnode, &ret, objmap->baseobj); return; } } @@ -258,7 +258,7 @@ Since: DOM Level 2 */ PHP_FUNCTION(dom_namednodemap_get_named_item_ns) { - zval *id, *rv = NULL; + zval *id; int ret, namedlen=0, urilen=0; dom_object *intern; xmlNodePtr itemnode = NULL; @@ -298,7 +298,7 @@ PHP_FUNCTION(dom_namednodemap_get_named_item_ns) } if (itemnode) { - DOM_RET_OBJ(rv, itemnode, &ret, objmap->baseobj); + DOM_RET_OBJ(itemnode, &ret, objmap->baseobj); return; } else { RETVAL_NULL(); |