aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-11-12 19:24:14 +0000
committerTom Tromey <tromey@redhat.com>2012-11-12 19:24:14 +0000
commit31594462cabd1148f94aea7c2064ba0564568316 (patch)
treea9fa078911a317a3409cd1402a6bc5c85f470a05 /gdb/python
parent18a9fc1261b8a654fe6db7eea7e60b0c59296d96 (diff)
downloadgdb-31594462cabd1148f94aea7c2064ba0564568316.zip
gdb-31594462cabd1148f94aea7c2064ba0564568316.tar.gz
gdb-31594462cabd1148f94aea7c2064ba0564568316.tar.bz2
* python/python.c (start_type_printers): Initialize 'result_obj'.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 359d238..5f6df60 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);