* python/python.c (start_type_printers): Initialize 'result_obj'.
authorTom Tromey <tromey@redhat.com>
Mon, 12 Nov 2012 19:24:14 +0000 (19:24 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 12 Nov 2012 19:24:14 +0000 (19:24 +0000)
gdb/ChangeLog
gdb/python/python.c

index 583f1c0..bd1216e 100644 (file)
@@ -1,5 +1,9 @@
 2012-11-12  Tom Tromey  <tromey@redhat.com>
 
+       * python/python.c (start_type_printers): Initialize 'result_obj'.
+
+2012-11-12  Tom Tromey  <tromey@redhat.com>
+
        * NEWS: Update.
        * data-directory/Makefile.in (PYTHON_FILES): Add
        type_printers.py.
index 359d238..5f6df60 100644 (file)
@@ -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);