Skip to content

Commit 38cf52d

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Fix use-of-uninitialized value in phar_object.c
2 parents 37e6594 + b71a961 commit 38cf52d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/phar/phar_object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3709,7 +3709,7 @@ PHP_METHOD(Phar, offsetSet)
37093709
{
37103710
char *fname, *cont_str = NULL;
37113711
size_t fname_len, cont_len;
3712-
zval *zresource;
3712+
zval *zresource = NULL;
37133713

37143714
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "pr", &fname, &fname_len, &zresource) == FAILURE
37153715
&& zend_parse_parameters(ZEND_NUM_ARGS(), "ps", &fname, &fname_len, &cont_str, &cont_len) == FAILURE) {

0 commit comments

Comments
 (0)