summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-07-20 13:12:09 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-07-20 13:12:09 (GMT)
commit7ed4294d7f821a0733ab47285317f06a8c51e5db (patch)
tree7495f86456c3a923e1229c4417a9c37c776ac445 /Modules
parent97cb67b9ca1d3e36dcaabb3879380c01820e16a6 (diff)
downloadcpython-7ed4294d7f821a0733ab47285317f06a8c51e5db.zip
cpython-7ed4294d7f821a0733ab47285317f06a8c51e5db.tar.gz
cpython-7ed4294d7f821a0733ab47285317f06a8c51e5db.tar.bz2
Add missing check of PyDict_Update()'s return value in _elementtree.c
CID 719637
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_elementtree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 9789527..c179e96 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -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;
}