From 09d5912c6f5be8d8935ff45941bf957209bd42a6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 18 Jun 2012 15:36:09 +0000 Subject: 2012-06-18 Greta Yorsh * remote-sim.c (sim_command_completer): Initialize variable 'result'. --- gdb/remote-sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/remote-sim.c') 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) -- cgit v1.1