This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[python] minor membuf fix


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]