diff options
| author | jvoisin | 2021-01-01 16:31:33 +0100 |
|---|---|---|
| committer | jvoisin | 2021-01-01 16:31:33 +0100 |
| commit | 837fbdb88a513500520f057d27bdfedd0d3995ca (patch) | |
| tree | a311472f26ac4358f5c03311ea37e99e7d4facd7 /src/sp_disabled_functions.c | |
| parent | 0127dd9b9d1d81dbeb674bd956a10fbd83f42cdd (diff) | |
Constify a function
Diffstat (limited to 'src/sp_disabled_functions.c')
| -rw-r--r-- | src/sp_disabled_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index c5ea437..41c9f23 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c | |||
| @@ -40,7 +40,7 @@ static bool is_functions_list_matching(zend_execute_data* execute_data, | |||
| 40 | sp_list_node* functions_list) { | 40 | sp_list_node* functions_list) { |
| 41 | zend_execute_data *orig_execute_data, *current; | 41 | zend_execute_data *orig_execute_data, *current; |
| 42 | orig_execute_data = current = execute_data; | 42 | orig_execute_data = current = execute_data; |
| 43 | sp_list_node const * it = functions_list; | 43 | sp_list_node const* it = functions_list; |
| 44 | 44 | ||
| 45 | while (current) { | 45 | while (current) { |
| 46 | if (it == NULL) { // every function in the list matched, we've got a match! | 46 | if (it == NULL) { // every function in the list matched, we've got a match! |
| @@ -60,7 +60,7 @@ static bool is_functions_list_matching(zend_execute_data* execute_data, | |||
| 60 | if (0 == match) { | 60 | if (0 == match) { |
| 61 | it = it->next; | 61 | it = it->next; |
| 62 | } | 62 | } |
| 63 | current = current->prev_execute_data; | 63 | current = current->prev_execute_data; |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | EG(current_execute_data) = orig_execute_data; | 66 | EG(current_execute_data) = orig_execute_data; |
