Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
corona10 committed Apr 17, 2024
commit 5d57a56a313aeed01b771bae44ccd8f7e8e4ec04
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