Issue #17810: return -1 on error

This commit is contained in:
Christian Heimes 2013-11-23 21:05:31 +01:00
parent b3d3ee4fef
commit 74d8d63b18
1 changed files with 1 additions and 1 deletions

View File

@ -2941,7 +2941,7 @@ save_frozenset(PicklerObject *self, PyObject *obj)
iter = PyObject_GetIter(obj);
if (iter == NULL) {
return NULL;
return -1;
}
for (;;) {
PyObject *item;