summaryrefslogtreecommitdiffstats
path: root/Modules/_elementtree.c
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2012-06-03 03:09:42 (GMT)
committerEli Bendersky <eliben@gmail.com>2012-06-03 03:09:42 (GMT)
commitc68e1368b52eb3b6b192593b988e882579827694 (patch)
treec50961a4bc92534df545e1900bcb32ca4e0e4a95 /Modules/_elementtree.c
parent2b88fcf693f14d3044929a24a5a66f45107eda23 (diff)
downloadcpython-c68e1368b52eb3b6b192593b988e882579827694.zip
cpython-c68e1368b52eb3b6b192593b988e882579827694.tar.gz
cpython-c68e1368b52eb3b6b192593b988e882579827694.tar.bz2
Fix unterminated keyword array passed to PyArg_ParseTupleAndKeywords
Diffstat (limited to 'Modules/_elementtree.c')
-rw-r--r--Modules/_elementtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index d984b51..103e778 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -1855,7 +1855,7 @@ treebuilder_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
static int
treebuilder_init(PyObject *self, PyObject *args, PyObject *kwds)
{
- static char *kwlist[] = {"element_factory", NULL};
+ static char *kwlist[] = {"element_factory", 0};
PyObject *element_factory = NULL;
TreeBuilderObject *self_tb = (TreeBuilderObject *)self;
@@ -2762,7 +2762,7 @@ xmlparser_init(PyObject *self, PyObject *args, PyObject *kwds)
XMLParserObject *self_xp = (XMLParserObject *)self;
PyObject *target = NULL, *html = NULL;
char *encoding = NULL;
- static char *kwlist[] = {"html", "target", "encoding"};
+ static char *kwlist[] = {"html", "target", "encoding", 0};
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OOz:XMLParser", kwlist,
&html, &target, &encoding)) {