2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
authorTom Tromey <tromey@redhat.com>
Mon, 18 Jun 2012 15:36:09 +0000 (15:36 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 18 Jun 2012 15:36:09 +0000 (15:36 +0000)
* remote-sim.c (sim_command_completer): Initialize
variable 'result'.

gdb/ChangeLog
gdb/remote-sim.c

index 19d1e13b176db722f297341173c7873b64a24b0f..86c50934718a9a0c0dc0d93b46c93dbacd6c4f9c 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
+
+       * remote-sim.c (sim_command_completer): Initialize
+       variable 'result'.
+
 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
index 11e1003b73def2844ae0d57b1a4a5f6b4b4a7ed3..f5927f2d9668a48c53b7251a2f62371b36a03e3f 100644 (file)
@@ -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)