projects
/
platform
/
upstream
/
gobject-introspection.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbd0fbb
)
Improve type checking
author
Johan Dahlin
<jdahlin@litl.com>
Thu, 19 Feb 2009 23:25:04 +0000
(20:25 -0300)
committer
Johan Dahlin
<johan@gnome.org>
Thu, 19 Feb 2009 23:25:04 +0000
(20:25 -0300)
giscanner/giscannermodule.c
patch
|
blob
|
history
diff --git
a/giscanner/giscannermodule.c
b/giscanner/giscannermodule.c
index 26f28cb6b974c7ad2bba567eba6d139f6e137514..322350828123b811187289034a979f328c6237bb 100644
(file)
--- 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;