]> granicus.if.org Git - python/commitdiff
Issue #17810: return -1 on error
authorChristian Heimes <christian@cheimes.de>
Sat, 23 Nov 2013 20:05:31 +0000 (21:05 +0100)
committerChristian Heimes <christian@cheimes.de>
Sat, 23 Nov 2013 20:05:31 +0000 (21:05 +0100)
Modules/_pickle.c

index b63a7d92c54ff19f5cc04f54652d79c5ce5077c4..6de94ec1baea13755e614182ff134b4c61b9fb55 100644 (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;