* gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
authorTom Tromey <tromey@redhat.com>
Mon, 19 Mar 2012 18:13:43 +0000 (18:13 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 19 Mar 2012 18:13:43 +0000 (18:13 +0000)
gdb/ChangeLog
gdb/gnu-v3-abi.c

index 7325047..0dc49a3 100644 (file)
@@ -1,3 +1,7 @@
+2012-03-19  Tom Tromey  <tromey@redhat.com>
+
+       * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
+
 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        PR symtab/13777
index 72ca2a1..1095c60 100644 (file)
@@ -907,7 +907,7 @@ gnuv3_print_vtable (struct value *value)
   struct value_print_options opts;
   htab_t offset_hash;
   struct cleanup *cleanup;
-  VEC (value_and_voffset_p) *result_vec;
+  VEC (value_and_voffset_p) *result_vec = NULL;
   struct value_and_voffset *iter;
   int i, count;