summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-06-18 18:58:28 +0200
committerDavid Sommerseth <davids@redhat.com>2009-06-18 18:58:28 +0200
commit849627808ac2c20f5baec6431c4ee65547c11ecc (patch)
tree747fd7282486135575620a5b12ce234d6803d729 /src
parenta95af5acd4f2591e2c0d42f0284897cd3de90230 (diff)
downloadpython-dmidecode-849627808ac2c20f5baec6431c4ee65547c11ecc.tar.gz
python-dmidecode-849627808ac2c20f5baec6431c4ee65547c11ecc.tar.xz
python-dmidecode-849627808ac2c20f5baec6431c4ee65547c11ecc.zip
Fixed issue with unterminated list in dmidecode_xmlapi()
This caused an exception on Python2.3
Diffstat (limited to 'src')
-rw-r--r--src/dmidecodemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dmidecodemodule.c b/src/dmidecodemodule.c
index 1f37dc3..5c74124 100644
--- a/src/dmidecodemodule.c
+++ b/src/dmidecodemodule.c
@@ -490,7 +490,7 @@ static PyObject *dmidecode_get_type(PyObject * self, PyObject * args)
static PyObject *dmidecode_xmlapi(PyObject *self, PyObject *args, PyObject *keywds)
{
- static char *keywordlist[] = {"query_type", "result_type", "section", "typeid"};
+ static char *keywordlist[] = {"query_type", "result_type", "section", "typeid", NULL};
PyObject *pydata = NULL;
xmlDoc *dmixml_doc = NULL;
xmlNode *dmixml_n = NULL;