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

CID 719637
This commit is contained in:
Christian Heimes 2013-07-20 15:12:19 +02:00
commit 2ef710e40f

View file

@ -310,7 +310,8 @@ get_attrib_from_keywords(PyObject *kwds)
/* attrib can be NULL if PyDict_New failed */
if (attrib)
PyDict_Update(attrib, kwds);
if (PyDict_Update(attrib, kwds) < 0)
return NULL;
return attrib;
}