diff options
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; |
