os: minor fix terminal_expect_send test-component

When an empty line was send, it could occur
that a previous line got printed instead.

Ref #3926
This commit is contained in:
Stefan Kalkowski 2020-09-11 15:40:31 +02:00 committed by Christian Helmuth
parent 7298b00013
commit 6be09a27ca

View File

@ -55,6 +55,7 @@ struct Main
if (read_buffer[i] == '\n') {
if (verbose) log(Cstring(line));
line_idx = 0;
line[line_idx] = 0;
}
}
}