Kaydet (Commit) 24c4b3d4 authored tarafından Barry Warsaw's avatar Barry Warsaw

list2set(): PyList_GetItem could fail.

üst 094579e6
...@@ -100,7 +100,9 @@ list2set(list, set, fd2obj) ...@@ -100,7 +100,9 @@ list2set(list, set, fd2obj)
SOCKET v; SOCKET v;
/* any intervening fileno() calls could decr this refcnt */ /* any intervening fileno() calls could decr this refcnt */
o = PyList_GetItem(list, i); if (!(o = PyList_GetItem(list, i)))
return NULL;
Py_INCREF(o); Py_INCREF(o);
if (PyInt_Check(o)) { if (PyInt_Check(o)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment