This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: fix the build
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 12 Nov 2012 12:23:51 -0700
- Subject: 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);