Skip to content

Commit 815d316

Browse files
committed
Fix win32 build
1 parent 9e0e89c commit 815d316

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/dom/dom_iterators.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,13 @@ zend_object_iterator *php_dom_get_iterator(zend_class_entry *ce, zval *object, i
262262
int ret, curindex = 0;
263263
HashTable *nodeht;
264264
zval **entry;
265+
php_dom_iterator *iterator;
265266

266267
if (by_ref) {
267268
zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
268269
}
269-
php_dom_iterator *iterator = emalloc(sizeof(php_dom_iterator));
270-
270+
iterator = emalloc(sizeof(php_dom_iterator));
271+
271272
object->refcount++;
272273
iterator->intern.data = (void*)object;
273274
iterator->intern.funcs = &php_dom_iterator_funcs;

0 commit comments

Comments
 (0)