Kaydet (Commit) 7ed4294d authored tarafından Christian Heimes's avatar Christian Heimes

Add missing check of PyDict_Update()'s return value in _elementtree.c

CID 719637
üst 97cb67b9
...@@ -347,7 +347,8 @@ get_attrib_from_keywords(PyObject *kwds) ...@@ -347,7 +347,8 @@ get_attrib_from_keywords(PyObject *kwds)
Py_DECREF(attrib_str); Py_DECREF(attrib_str);
if (attrib) if (attrib)
PyDict_Update(attrib, kwds); if (PyDict_Update(attrib, kwds) < 0)
return NULL;
return attrib; return attrib;
} }
......
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