From 611d50b70e014fb01e5f018185ab728ee4aa069a Mon Sep 17 00:00:00 2001 From: Yan Yanchii Date: Tue, 25 Mar 2025 22:57:26 +0100 Subject: [PATCH] remove memset --- Python/ast_opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ast_opt.c b/Python/ast_opt.c index 99a2418da46e35..15060e48a75e62 100644 --- a/Python/ast_opt.c +++ b/Python/ast_opt.c @@ -940,11 +940,11 @@ _PyAST_Optimize(mod_ty mod, PyArena *arena, PyObject *filename, int optimize, int ff_features, int syntax_check_only) { _PyASTOptimizeState state; - memset(&state, 0, sizeof(_PyASTOptimizeState)); state.filename = filename; state.optimize = optimize; state.ff_features = ff_features; state.syntax_check_only = syntax_check_only; + state.cf_finally_used = 0; if (_Py_CArray_Init(&state.cf_finally, sizeof(ControlFlowInFinallyContext), 20) < 0) { return -1; }