list2set(): correct return value (an int, not a PyObject*).
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 @@
 
 		/* any intervening fileno() calls could decr this refcnt */
 		if (!(o = PyList_GetItem(list, i)))
-                    return NULL;
+                    return -1;
 
 		Py_INCREF(o);