Skip to content

Commit 4aa80db

Browse files
committed
C89 compat
1 parent c8617d8 commit 4aa80db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

phpdbg_watch.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,9 @@ PHPDBG_WATCH(array) /* {{{ */
464464

465465
void phpdbg_watch_HashTable_dtor(zval **zv) {
466466
phpdbg_btree_result *result;
467-
zval_ptr_dtor_wrapper(zv);
468467
TSRMLS_FETCH();
469468

469+
zval_ptr_dtor_wrapper(zv);
470470

471471
if ((result = phpdbg_btree_find(&PHPDBG_G(watchpoint_tree), (zend_ulong)*zv))) {
472472
phpdbg_watchpoint_t *watch = result->ptr;
@@ -772,9 +772,11 @@ void phpdbg_list_watchpoints(TSRMLS_D) {
772772
}
773773

774774
void phpdbg_watch_efree(void *ptr) {
775-
phpdbg_btree_result *result = phpdbg_btree_find_closest(&PHPDBG_G(watchpoint_tree), (zend_ulong)ptr);
775+
phpdbg_btree_result *result;
776776
TSRMLS_FETCH();
777777

778+
result = phpdbg_btree_find_closest(&PHPDBG_G(watchpoint_tree), (zend_ulong)ptr);
779+
778780
if (result) {
779781
phpdbg_watchpoint_t *watch = result->ptr;
780782

0 commit comments

Comments
 (0)