diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-20 13:12:19 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-20 13:12:19 (GMT) |
commit | 2ef710e40f116a8d15c074f0682bfdf2521bbe23 (patch) | |
tree | 6fcd2570e351905997de84585587a252b54b6599 /Modules/_elementtree.c | |
parent | 3f95bdcdbeae91648f394816888034a24153ffc5 (diff) | |
parent | 7ed4294d7f821a0733ab47285317f06a8c51e5db (diff) | |
download | cpython-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.c | 3 |
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; } |