From 5ff5c7b436a6887a4a910659ce276ea75496a92b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 19 Mar 2012 18:13:43 +0000 Subject: [PATCH] * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'. --- gdb/ChangeLog | 4 ++++ gdb/gnu-v3-abi.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7325047b2b2..0dc49a31f49 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-03-19 Tom Tromey + + * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'. + 2012-03-16 Jan Kratochvil PR symtab/13777 diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index 72ca2a16d0c..1095c60b9e1 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -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; -- 2.30.2