summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/selectmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index dfe95484..047c0d4 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -101,7 +101,7 @@ list2set(list, set, fd2obj)
/* any intervening fileno() calls could decr this refcnt */
if (!(o = PyList_GetItem(list, i)))
- return NULL;
+ return -1;
Py_INCREF(o);