Skip to content

Commit 398f032

Browse files
committed
fix cruft from previous incarnation of the iterators
1 parent d8d1ca3 commit 398f032

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/com_dotnet/com_iterator.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ static void com_iter_get_data(zend_object_iterator *iter, zval ***data TSRMLS_DC
6464
zval **ptr_ptr;
6565
zval *ptr;
6666

67+
/* sanity */
6768
if (I->key == (ulong)-1) {
6869
*data = NULL;
69-
return FAILURE;
70+
return;
7071
}
7172

7273
MAKE_STD_ZVAL(ptr);
@@ -75,7 +76,7 @@ static void com_iter_get_data(zend_object_iterator *iter, zval ***data TSRMLS_DC
7576
*ptr_ptr = ptr;
7677
*data = ptr_ptr;
7778

78-
return SUCCESS;
79+
return;
7980
}
8081

8182
static int com_iter_get_key(zend_object_iterator *iter, char **str_key, uint *str_key_len,

0 commit comments

Comments
 (0)