Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Apr 17, 2024
1 parent fbb9964 commit 5d57a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_pickle.c
Original file line number Diff line number Diff line change
Expand Up @@ -3415,7 +3415,7 @@ save_set(PickleState *state, PicklerObject *self, PyObject *obj)
if (_Pickler_Write(self, &mark_op, 1) < 0)
return -1;

int err = -1;
int err = 0;
Py_BEGIN_CRITICAL_SECTION(obj);
while (_PySet_NextEntry(obj, &ppos, &item, &hash)) {
err = save(state, self, item, 0);
Expand Down

0 comments on commit 5d57a56

Please sign in to comment.