mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 05:12:28 +08:00
2006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
* cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user