diff options
| author | Ben Fuhrmannek | 2022-01-07 18:01:50 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2022-01-07 18:01:50 +0100 |
| commit | c102fd3535cbed3d8a22d77306dedf2caf7c8674 (patch) | |
| tree | 9092943cea23cf6bd188e17acc2492eb6877e22e /src/sp_execute.c | |
| parent | 4b5afd0148cef6c845a37aff68e1fbac8f5653d7 (diff) | |
fixed invalid return value
Diffstat (limited to 'src/sp_execute.c')
| -rw-r--r-- | src/sp_execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_execute.c b/src/sp_execute.c index aadd145..f1ed8d0 100644 --- a/src/sp_execute.c +++ b/src/sp_execute.c | |||
| @@ -190,7 +190,7 @@ static inline void sp_execute_handler(INTERNAL_FUNCTION_PARAMETERS, bool interna | |||
| 190 | // execute_data, so we need to use a local variable to be able to match on | 190 | // execute_data, so we need to use a local variable to be able to match on |
| 191 | // it later. | 191 | // it later. |
| 192 | zval ret_val; | 192 | zval ret_val; |
| 193 | if (EX(return_value) == NULL) { | 193 | if (EX(return_value) == NULL && return_value == NULL) { |
| 194 | memset(&ret_val, 0, sizeof(ret_val)); | 194 | memset(&ret_val, 0, sizeof(ret_val)); |
| 195 | return_value = EX(return_value) = &ret_val; | 195 | return_value = EX(return_value) = &ret_val; |
| 196 | } | 196 | } |
