1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Initialize zpp varargs variables

These are not initialized if no args are passed.
This commit is contained in:
Nikita Popov
2021-05-10 19:19:26 +02:00
parent a9695aa155
commit 4f46bec5d4

View File

@@ -2358,8 +2358,8 @@ PHP_FUNCTION(getprotobynumber)
PHP_FUNCTION(register_tick_function)
{
user_tick_function_entry tick_fe;
zval *params;
uint32_t param_count;
zval *params = NULL;
uint32_t param_count = 0;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "f*", &tick_fe.fci, &tick_fe.fci_cache, &params, &param_count) == FAILURE) {
RETURN_THROWS();