Skip to content

Commit

Permalink
fix cruft from previous incarnation of the iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Oct 17, 2003
1 parent d8d1ca3 commit 398f032
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ext/com_dotnet/com_iterator.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ static void com_iter_get_data(zend_object_iterator *iter, zval ***data TSRMLS_DC
zval **ptr_ptr;
zval *ptr;

/* sanity */
if (I->key == (ulong)-1) {
*data = NULL;
return FAILURE;
return;
}

MAKE_STD_ZVAL(ptr);
Expand All @@ -75,7 +76,7 @@ static void com_iter_get_data(zend_object_iterator *iter, zval ***data TSRMLS_DC
*ptr_ptr = ptr;
*data = ptr_ptr;

return SUCCESS;
return;
}

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

0 comments on commit 398f032

Please sign in to comment.