summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@katamail.com>2007-11-24 12:58:56 +0000
committerPaolo Borelli <pborelli@src.gnome.org>2007-11-24 12:58:56 +0000
commit5f7e6b2a3c1335b9d54ae82735d66ff4499dd118 (patch)
tree2e17668997e3b3e60f726956f1c52de57186c4f5
parent555c368ad1f9e29dc15a018f795312d8b6a7fa0e (diff)
downloadpygobject-5f7e6b2a3c1335b9d54ae82735d66ff4499dd118.tar.gz
pygobject-5f7e6b2a3c1335b9d54ae82735d66ff4499dd118.tar.xz
pygobject-5f7e6b2a3c1335b9d54ae82735d66ff4499dd118.zip
do not use a potentially uninitialized variable. Bug #499334.
2007-11-24 Paolo Borelli <pborelli@katamail.com> * gobject/gobjectmodule.c (pyg_type_register): do not use a potentially uninitialized variable. Bug #499334. svn path=/trunk/; revision=719
-rw-r--r--ChangeLog5
-rw-r--r--gobject/gobjectmodule.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e55527..eaf40e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-24 Paolo Borelli <pborelli@katamail.com>
+
+ * gobject/gobjectmodule.c (pyg_type_register): do not use a
+ potentially uninitialized variable. Bug #499334.
+
2007-11-12 Johan Dahlin <johan@gnome.org>
* gobject/option.py (OptionParser.parse_args):
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index 07eb8aa..9d78bf8 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -1407,9 +1407,10 @@ pyg_type_register(PyTypeObject *class, const char *type_name)
if (parent_interfaces[parent_interface_iter] == itype)
break;
}
+
+ if (parent_interface_iter < n_parent_interfaces)
+ continue;
}
- if (parent_interface_iter < n_parent_interfaces)
- continue;
iinfo = pyg_lookup_interface_info(itype);
iinfo_copy = *iinfo;