Skip to content

Commit fa03276

Browse files
committed
Initialize method_lcname to suppress maybe-uninitialized warning
1 parent 267c24e commit fa03276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7145,7 +7145,7 @@ static void zend_compile_func_decl(znode *result, zend_ast *ast, bool toplevel)
71457145
zend_ast *stmt_ast = decl->child[2];
71467146
zend_ast *return_type_ast = decl->child[3];
71477147
bool is_method = decl->kind == ZEND_AST_METHOD;
7148-
zend_string *method_lcname;
7148+
zend_string *method_lcname = NULL;
71497149

71507150
zend_class_entry *orig_class_entry = CG(active_class_entry);
71517151
zend_op_array *orig_op_array = CG(active_op_array);

0 commit comments

Comments
 (0)