This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

FYI: fix the build


I'm checking this in.

Andrew Pinski pointed out that I broke the build in some configurations.
I'm sorry for that.  This patch fixes the problem by initializing a
variable in python.c.

Tom

ChangeLog:
2012-11-12  Tom Tromey  <tromey@redhat.com>

	* python/python.c (start_type_printers): Initialize 'result_obj'.

Index: python/python.c
===================================================================
RCS file: /cvs/src/src/gdb/python/python.c,v
retrieving revision 1.100
diff -u -r1.100 python.c
--- python/python.c	12 Nov 2012 17:41:57 -0000	1.100
+++ python/python.c	12 Nov 2012 19:23:09 -0000
@@ -1189,7 +1189,7 @@
 start_type_printers (void)
 {
   struct cleanup *cleanups;
-  PyObject *type_module, *func, *result_obj;
+  PyObject *type_module, *func, *result_obj = NULL;
 
   cleanups = ensure_python_env (get_current_arch (), current_language);
 


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