From 09d5912c6f5be8d8935ff45941bf957209bd42a6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 18 Jun 2012 15:36:09 +0000 Subject: [PATCH] 2012-06-18 Greta Yorsh * remote-sim.c (sim_command_completer): Initialize variable 'result'. --- gdb/ChangeLog | 5 +++++ gdb/remote-sim.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 19d1e13b17..86c5093471 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-06-18 Greta Yorsh + + * remote-sim.c (sim_command_completer): Initialize + variable 'result'. + 2012-06-17 Jan Kratochvil * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref. diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 11e1003b73..f5927f2d96 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) -- 2.34.1