diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2006-06-21 10:49:16 +0000 |
---|---|---|
committer | Andrew Stubbs <andrew.stubbs@st.com> | 2006-06-21 10:49:16 +0000 |
commit | 42b575e54591594e33810221501585722eb80623 (patch) | |
tree | b49c214dc1b3a41b7cdb32dbf076f9ebf66240c5 /gdb/cli | |
parent | 9ae039863459a0fb4dd9bd12ea1e8f781d9ab504 (diff) | |
download | binutils-42b575e54591594e33810221501585722eb80623.zip binutils-42b575e54591594e33810221501585722eb80623.tar.gz binutils-42b575e54591594e33810221501585722eb80623.tar.bz2 |
2006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
* cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-script.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 4f44477..643eb74 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -701,6 +701,7 @@ realloc_body_list (struct command_line *command, int new_length) 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; |