2006-06-20 Andrew Stubbs * cli/cli-script.c (realloc_body_list): Zero new parts of body_list. Index: src/gdb/cli/cli-script.c =================================================================== --- src.orig/gdb/cli/cli-script.c 2006-04-07 14:31:15.000000000 +0100 +++ src/gdb/cli/cli-script.c 2006-06-20 15:15:25.000000000 +0100 @@ -701,6 +701,7 @@ realloc_body_list (struct command_line * xmalloc (sizeof (struct command_line *) * new_length); memcpy (body_list, command->body_list, sizeof (struct command_line *) * n); + memset (body_list + n, 0, sizeof (struct command_line *) * (new_length - n)); xfree (command->body_list); command->body_list = body_list;