]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* 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 7325047b2b29c616729b92d8b05cfc1ce956832a..0dc49a31f49f55ca5133efefb764315061740d97 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 72ca2a16d0ccc47999bb6d6ce6c4cc254eb489b5..1095c60b9e103b9cfdfc0d2683cb09ba35742393 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;