aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-08-24 17:24:28 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-08-24 17:24:28 +0000
commite8fd65ef54d2fa210f70704a533c4e02b7cec8b3 (patch)
tree75d59eceef526ef53ee688e593703b8111fa8d26
parentb51176f17069a2c180c51aecfac4bee6a114ca91 (diff)
downloadfsf-binutils-gdb-e8fd65ef54d2fa210f70704a533c4e02b7cec8b3.zip
fsf-binutils-gdb-e8fd65ef54d2fa210f70704a533c4e02b7cec8b3.tar.gz
fsf-binutils-gdb-e8fd65ef54d2fa210f70704a533c4e02b7cec8b3.tar.bz2
gdb/
* python/py-type.c (typy_richcompare): Initialize worklist.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/python/py-type.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1941611..d70a5fe 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * python/py-type.c (typy_richcompare): Initialize worklist.
+
2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
Kazu Hirata <kazu@codesourcery.com>
Jonathan Larmour <jifl@eCosCentric.com>
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index 4c80210..eff2d55 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -892,7 +892,7 @@ typy_richcompare (PyObject *self, PyObject *other, int op)
else
{
struct bcache *cache;
- VEC (type_equality_entry_d) *worklist;
+ VEC (type_equality_entry_d) *worklist = NULL;
struct type_equality_entry entry;
cache = bcache_xmalloc ();