cygwin: console: Use memset to clear an array

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2017-07-31 11:44:02 +02:00
parent 9374e7f65d
commit 7b9bfb4136
1 changed files with 2 additions and 3 deletions

View File

@ -2216,12 +2216,11 @@ fhandler_console::write (const void *vsrc, size_t len)
if (*src == '[') /* CSI Control Sequence Introducer */
{
con.state = gotsquare;
memset (con.args, 0, sizeof con.args);
con.nargs = 0;
con.saw_question_mark = false;
con.saw_greater_than_sign = false;
con.saw_space = false;
for (con.nargs = 0; con.nargs < MAXARGS; con.nargs++)
con.args[con.nargs] = 0;
con.nargs = 0;
}
else if (*src == ']') /* OSC Operating System Command */
{