Skip to content

Commit 7cac634

Browse files
committed
Fixed uninitialized value
1 parent 6905cf2 commit 7cac634

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Zend/zend_compile.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,8 @@ void zend_do_receive_arg(zend_uchar op, znode *var, znode *offset, znode *initia
14321432
cur_arg_info->array_type_hint = 0;
14331433
cur_arg_info->allow_null = 1;
14341434
cur_arg_info->pass_by_reference = pass_by_reference;
1435+
cur_arg_info->class_name = NULL_ZSTR;
1436+
cur_arg_info->class_name_len = 0;
14351437

14361438
if (class_type->op_type != IS_UNUSED) {
14371439
cur_arg_info->allow_null = 0;
@@ -1466,9 +1468,6 @@ void zend_do_receive_arg(zend_uchar op, znode *var, znode *offset, znode *initia
14661468
}
14671469
}
14681470
}
1469-
} else {
1470-
cur_arg_info->class_name = NULL_ZSTR;
1471-
cur_arg_info->class_name_len = 0;
14721471
}
14731472
opline->result.u.EA.type |= EXT_TYPE_UNUSED;
14741473
}

0 commit comments

Comments
 (0)