From e8fd65ef54d2fa210f70704a533c4e02b7cec8b3 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 24 Aug 2010 17:24:28 +0000 Subject: [PATCH] gdb/ * python/py-type.c (typy_richcompare): Initialize worklist. --- gdb/ChangeLog | 4 ++++ gdb/python/py-type.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 19416118efa..d70a5fe7a3d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-08-24 Jan Kratochvil + + * python/py-type.c (typy_richcompare): Initialize worklist. + 2010-08-24 Daniel Jacobowitz Kazu Hirata Jonathan Larmour diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 4c80210861f..eff2d557b38 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 (); -- 2.30.2