From: Tom Tromey Date: Mon, 18 Jun 2012 15:36:09 +0000 (+0000) Subject: 2012-06-18 Greta Yorsh X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09d5912c6f5be8d8935ff45941bf957209bd42a6;p=binutils-gdb.git 2012-06-18 Greta Yorsh * remote-sim.c (sim_command_completer): Initialize variable 'result'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 19d1e13b176..86c50934718 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 11e1003b73d..f5927f2d966 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)