* [python] minor membuf fix
@ 2009-04-06 23:52 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2009-04-06 23:52 UTC (permalink / raw)
To: Project Archer
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-06 23:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-06 23:52 [python] minor membuf fix Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).