Skip to content

Commit

Permalink
Initialize method_lcname to suppress maybe-uninitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 26, 2021
1 parent 267c24e commit fa03276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -7145,7 +7145,7 @@ static void zend_compile_func_decl(znode *result, zend_ast *ast, bool toplevel)
zend_ast *stmt_ast = decl->child[2];
zend_ast *return_type_ast = decl->child[3];
bool is_method = decl->kind == ZEND_AST_METHOD;
zend_string *method_lcname;
zend_string *method_lcname = NULL;

zend_class_entry *orig_class_entry = CG(active_class_entry);
zend_op_array *orig_op_array = CG(active_op_array);
Expand Down

0 comments on commit fa03276

Please sign in to comment.