* 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 583f1c024800f8832a1a6eb6024b919189361469..bd1216ee5391b10d5bf1dbbf2f732f08678768ae 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 359d2385662993a86784154e61af0777c93dd5e5..5f6df60e29b1e56aeea71574170a1cb3df888c7f 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);