diff options
author | Johan Dahlin <jdahlin@litl.com> | 2009-02-19 20:25:04 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2009-02-19 20:25:04 -0300 |
commit | b02efbc94a1a6febddf62d1e742abd1f82e9ecf3 (patch) | |
tree | 8d84590b42a91fe9d78b697bcf2445b18d113650 /giscanner/giscannermodule.c | |
parent | cbd0fbb19f3fc7d490e9f8299cce2cb5bc55dcea (diff) | |
download | gobject-introspection-b02efbc94a1a6febddf62d1e742abd1f82e9ecf3.tar.gz |
Improve type checking
Diffstat (limited to 'giscanner/giscannermodule.c')
-rw-r--r-- | giscanner/giscannermodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c index 26f28cb6..32235082 100644 --- a/giscanner/giscannermodule.c +++ b/giscanner/giscannermodule.c @@ -567,6 +567,8 @@ pygi_collect_attributes (PyObject *self, first = TRUE; attr_value = g_string_new (""); + g_assert(PyList_Check(attributes)); + for (i = 0; i < PyList_Size (attributes); ++i) { PyObject *tuple; @@ -574,6 +576,7 @@ pygi_collect_attributes (PyObject *self, tuple = PyList_GetItem (attributes, i); g_assert(tuple != NULL); + g_assert(PyTuple_Check(tuple)); g_assert(PyTuple_Size(tuple) == 2); if (PyTuple_GetItem(tuple, 1) == Py_None) continue; |