This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[python] minor membuf fix
- From: Tom Tromey <tromey at redhat dot com>
- To: Project Archer <archer at sourceware dot org>
- Date: Mon, 06 Apr 2009 17:41:18 -0600
- Subject: [python] minor membuf fix
- Reply-to: Tom Tromey <tromey at redhat dot com>
I needed an initializer in python-membuf.c to compile with the F9 gcc.
Tom
2009-04-06 Tom Tromey <tromey@redhat.com>
* python/python-membuf.c (gdbpy_read_memory): Initialize
'buffer'.
diff --git a/gdb/python/python-membuf.c b/gdb/python/python-membuf.c
index d180a18..7bc294c 100644
--- a/gdb/python/python-membuf.c
+++ b/gdb/python/python-membuf.c
@@ -42,7 +42,7 @@ gdbpy_read_memory (PyObject *self, PyObject *args)
{
int error = 0;
CORE_ADDR addr, length;
- void *buffer;
+ void *buffer = NULL;
membuf_object *membuf_obj;
PyObject *addr_obj, *length_obj;
struct cleanup *cleanups = NULL;