From a5b0956aa6bf91912dd8127b9b5e9f76f7f4730e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 26 Jan 2018 11:34:07 +0100 Subject: Replace two `goto` with `break` instead. --- src/sp_disabled_functions.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index 933b9af..8396cae 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c @@ -45,7 +45,7 @@ static bool is_functions_list_matching(zend_execute_data* execute_data, char* complete_path_function = get_complete_function_path(current); if (!complete_path_function) { - goto end; + break; } int match = strcmp(((char*)it->data), complete_path_function); efree(complete_path_function); @@ -54,11 +54,10 @@ static bool is_functions_list_matching(zend_execute_data* execute_data, it = it->next; current = current->prev_execute_data; } else { - goto end; + break; } } -end: EG(current_execute_data) = orig_execute_data; return false; } -- cgit v1.3