diff options
author | Tom Tromey <tromey@redhat.com> | 2012-06-18 15:36:09 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-06-18 15:36:09 +0000 |
commit | 09d5912c6f5be8d8935ff45941bf957209bd42a6 (patch) | |
tree | 617144442a19d550081ae7256c5d69d36810e4f5 | |
parent | 5d5bf76dad497a95152c21c2f4acd85431bd4271 (diff) | |
download | fsf-binutils-gdb-09d5912c6f5be8d8935ff45941bf957209bd42a6.zip fsf-binutils-gdb-09d5912c6f5be8d8935ff45941bf957209bd42a6.tar.gz fsf-binutils-gdb-09d5912c6f5be8d8935ff45941bf957209bd42a6.tar.bz2 |
2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
* remote-sim.c (sim_command_completer): Initialize
variable 'result'.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote-sim.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 19d1e13..86c5093 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com> + + * remote-sim.c (sim_command_completer): Initialize + variable 'result'. + 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com> * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref. diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 11e1003..f5927f2 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -1204,7 +1204,7 @@ sim_command_completer (struct cmd_list_element *ignore, char *text, char *word) struct sim_inferior_data *sim_data; char **tmp; int i; - VEC (char_ptr) *result; + VEC (char_ptr) *result = NULL; sim_data = inferior_data (current_inferior (), sim_inferior_data_key); if (sim_data == NULL || sim_data->gdbsim_desc == NULL) |