From d161978c5609e2edfcc0097fc9712b552f19ec83 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 4 Dec 2007 12:38:42 +0000 Subject: [PATCH] Fixed uninitialized value --- Zend/zend_compile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 3c3b4cf7f9..7cf4234b97 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1338,6 +1338,8 @@ void zend_do_receive_arg(zend_uchar op, znode *var, znode *offset, znode *initia cur_arg_info->array_type_hint = 0; cur_arg_info->allow_null = 1; cur_arg_info->pass_by_reference = pass_by_reference; + cur_arg_info->class_name = NULL; + cur_arg_info->class_name_len = 0; if (class_type->op_type != IS_UNUSED) { cur_arg_info->allow_null = 0; @@ -1366,9 +1368,6 @@ void zend_do_receive_arg(zend_uchar op, znode *var, znode *offset, znode *initia } } } - } else { - cur_arg_info->class_name = NULL; - cur_arg_info->class_name_len = 0; } opline->result.u.EA.type |= EXT_TYPE_UNUSED; } -- 2.50.1