Skip to content

Commit 1e981ce

Browse files
committed
remove goto
1 parent e788673 commit 1e981ce

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Zend/zend_exceptions.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,11 +648,9 @@ ZEND_API zend_string *zend_trace_current_function_args_string(void) {
648648
return NULL; /* don't need to free */
649649
}
650650
first_frame = zend_hash_index_find(Z_ARRVAL(backtrace), 0);
651-
if (!first_frame) {
652-
goto free_backtrace;
651+
if (first_frame) {
652+
dynamic_params = zend_trace_function_args_to_string(Z_ARRVAL_P(first_frame));
653653
}
654-
dynamic_params = zend_trace_function_args_to_string(Z_ARRVAL_P(first_frame));
655-
free_backtrace:
656654
zval_ptr_dtor(&backtrace);
657655
/* free the string after we use it */
658656
return dynamic_params;

0 commit comments

Comments
 (0)