summaryrefslogtreecommitdiff
path: root/gdb/gnu-v3-abi.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-03-19 18:13:39 +0000
committerTom Tromey <tromey@redhat.com>2012-03-19 18:13:39 +0000
commitf0a040c143cbcec1244eebc0970b32013fb98a8a (patch)
treeae2bbbbde6ca7ab5aa5e840bc779ad922d16c83f /gdb/gnu-v3-abi.c
parent107d4a8ed2758747ffea0ca6ce5796f8dba96157 (diff)
downloadgdb-f0a040c143cbcec1244eebc0970b32013fb98a8a.tar.gz
* gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r--gdb/gnu-v3-abi.c2
1 files changed, 1 insertions, 1 deletions
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;