Skip to content

Commit 611d50b

Browse files
committed
remove memset
1 parent 90b82f2 commit 611d50b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ast_opt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,11 +940,11 @@ _PyAST_Optimize(mod_ty mod, PyArena *arena, PyObject *filename, int optimize,
940940
int ff_features, int syntax_check_only)
941941
{
942942
_PyASTOptimizeState state;
943-
memset(&state, 0, sizeof(_PyASTOptimizeState));
944943
state.filename = filename;
945944
state.optimize = optimize;
946945
state.ff_features = ff_features;
947946
state.syntax_check_only = syntax_check_only;
947+
state.cf_finally_used = 0;
948948
if (_Py_CArray_Init(&state.cf_finally, sizeof(ControlFlowInFinallyContext), 20) < 0) {
949949
return -1;
950950
}

0 commit comments

Comments
 (0)