From 31594462cabd1148f94aea7c2064ba0564568316 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 12 Nov 2012 19:24:14 +0000 Subject: [PATCH] * python/python.c (start_type_printers): Initialize 'result_obj'. --- gdb/ChangeLog | 4 ++++ gdb/python/python.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 583f1c02480..bd1216ee539 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-11-12 Tom Tromey + + * python/python.c (start_type_printers): Initialize 'result_obj'. + 2012-11-12 Tom Tromey * NEWS: Update. diff --git a/gdb/python/python.c b/gdb/python/python.c index 359d2385662..5f6df60e29b 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1189,7 +1189,7 @@ void * 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); -- 2.30.2