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