Skip to content

Commit b1d3f50

Browse files
committed
remove goto
1 parent 7da8ebd commit b1d3f50

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Zend/zend_exceptions.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,11 +638,9 @@ ZEND_API zend_string *zend_trace_current_function_args_string(void) {
638638
return NULL; /* don't need to free */
639639
}
640640
first_frame = zend_hash_index_find(Z_ARRVAL(backtrace), 0);
641-
if (!first_frame) {
642-
goto free_backtrace;
641+
if (first_frame) {
642+
dynamic_params = zend_trace_function_args_to_string(Z_ARRVAL_P(first_frame));
643643
}
644-
dynamic_params = zend_trace_function_args_to_string(Z_ARRVAL_P(first_frame));
645-
free_backtrace:
646644
zval_ptr_dtor(&backtrace);
647645
/* free the string after we use it */
648646
return dynamic_params;

0 commit comments

Comments
 (0)