diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:28:10 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:28:10 +0000 |
| commit | 72b356c1bccb511e9a3414cbfe6ff25b5a20b91f (patch) | |
| tree | b5ac19d75d629c064e8e68bd3182b594760f33be /ext/qtdom/qtdom.c | |
| parent | 94c25df5923aa6d91c0431fdde940afd3d843f08 (diff) | |
| download | php-git-72b356c1bccb511e9a3414cbfe6ff25b5a20b91f.tar.gz | |
Removed pointless memory allocation checks.
Diffstat (limited to 'ext/qtdom/qtdom.c')
| -rw-r--r-- | ext/qtdom/qtdom.c | 6 |
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; |
