Add missing check of PyDict_Update()'s return value in _elementtree.c
CID 719637
This commit is contained in:
parent
97cb67b9ca
commit
7ed4294d7f
|
@ -347,7 +347,8 @@ get_attrib_from_keywords(PyObject *kwds)
|
|||
Py_DECREF(attrib_str);
|
||||
|
||||
if (attrib)
|
||||
PyDict_Update(attrib, kwds);
|
||||
if (PyDict_Update(attrib, kwds) < 0)
|
||||
return NULL;
|
||||
return attrib;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue