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 /gdb/remote-sim.c | |
parent | 5d5bf76dad497a95152c21c2f4acd85431bd4271 (diff) | |
download | gdb-09d5912c6f5be8d8935ff45941bf957209bd42a6.zip gdb-09d5912c6f5be8d8935ff45941bf957209bd42a6.tar.gz gdb-09d5912c6f5be8d8935ff45941bf957209bd42a6.tar.bz2 |
2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
* remote-sim.c (sim_command_completer): Initialize
variable 'result'.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |