summaryrefslogtreecommitdiff
path: root/ext/qtdom/qtdom.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-01-18 19:28:10 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-01-18 19:28:10 +0000
commit72b356c1bccb511e9a3414cbfe6ff25b5a20b91f (patch)
treeb5ac19d75d629c064e8e68bd3182b594760f33be /ext/qtdom/qtdom.c
parent94c25df5923aa6d91c0431fdde940afd3d843f08 (diff)
downloadphp-git-72b356c1bccb511e9a3414cbfe6ff25b5a20b91f.tar.gz
Removed pointless memory allocation checks.
Diffstat (limited to 'ext/qtdom/qtdom.c')
-rw-r--r--ext/qtdom/qtdom.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/qtdom/qtdom.c b/ext/qtdom/qtdom.c
index 726b8bba23..77773d65fc 100644
--- a/ext/qtdom/qtdom.c
+++ b/ext/qtdom/qtdom.c
@@ -119,8 +119,7 @@ static int qdom_find_attributes( zval **children, struct qdom_attribute *attr TS
count = 0;
MAKE_STD_ZVAL(*children);
- if (array_init(*children) == FAILURE)
- return -1;
+ array_init(*children);
for ( i = 0; i < attr->Count; ++i )
{
node = qdom_do_attribute_at( attr, i );
@@ -158,8 +157,7 @@ static int qdom_find_children( zval **children, struct qdom_node *orig_node TSRM
/* node = orig_node; */
MAKE_STD_ZVAL(*children);
- if (array_init(*children) == FAILURE)
- return -1;
+ array_init(*children);
while( node )
{
int num_childs, num_attrs;