diff options
| author | jvoisin | 2018-01-26 11:34:07 +0100 |
|---|---|---|
| committer | jvoisin | 2018-01-26 11:34:07 +0100 |
| commit | a5b0956aa6bf91912dd8127b9b5e9f76f7f4730e (patch) | |
| tree | af7c02de82af655d3b222c9ae17d3e73b54bc8dc | |
| parent | cb613937dceda3e9768b96a67e2a6b6cad800c24 (diff) | |
Replace two `goto` with `break` instead.
| -rw-r--r-- | src/sp_disabled_functions.c | 5 |
1 files changed, 2 insertions, 3 deletions
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, | |||
| 45 | 45 | ||
| 46 | char* complete_path_function = get_complete_function_path(current); | 46 | char* complete_path_function = get_complete_function_path(current); |
| 47 | if (!complete_path_function) { | 47 | if (!complete_path_function) { |
| 48 | goto end; | 48 | break; |
| 49 | } | 49 | } |
| 50 | int match = strcmp(((char*)it->data), complete_path_function); | 50 | int match = strcmp(((char*)it->data), complete_path_function); |
| 51 | efree(complete_path_function); | 51 | efree(complete_path_function); |
| @@ -54,11 +54,10 @@ static bool is_functions_list_matching(zend_execute_data* execute_data, | |||
| 54 | it = it->next; | 54 | it = it->next; |
| 55 | current = current->prev_execute_data; | 55 | current = current->prev_execute_data; |
| 56 | } else { | 56 | } else { |
| 57 | goto end; | 57 | break; |
| 58 | } | 58 | } |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | end: | ||
| 62 | EG(current_execute_data) = orig_execute_data; | 61 | EG(current_execute_data) = orig_execute_data; |
| 63 | return false; | 62 | return false; |
| 64 | } | 63 | } |
