mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Add missing check of PyDict_Update()'s return value in _elementtree.c
CID 719637
This commit is contained in:
commit
2ef710e40f
1 changed files with 2 additions and 1 deletions
|
|
@ -310,7 +310,8 @@ get_attrib_from_keywords(PyObject *kwds)
|
||||||
|
|
||||||
/* attrib can be NULL if PyDict_New failed */
|
/* attrib can be NULL if PyDict_New failed */
|
||||||
if (attrib)
|
if (attrib)
|
||||||
PyDict_Update(attrib, kwds);
|
if (PyDict_Update(attrib, kwds) < 0)
|
||||||
|
return NULL;
|
||||||
return attrib;
|
return attrib;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue