From: Tom Tromey Date: Mon, 18 Jun 2012 15:36:09 +0000 (+0000) Subject: 2012-06-18 Greta Yorsh X-Git-Tag: sid-snapshot-20120701~139 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09d5912c6f5be8d8935ff45941bf957209bd42a6;p=platform%2Fupstream%2Fbinutils.git 2012-06-18 Greta Yorsh * remote-sim.c (sim_command_completer): Initialize variable 'result'. --- 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 + + * 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 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)