Fix silly execve() regression

This commit is contained in:
Justine Tunney 2023-10-04 08:07:07 -07:00
parent 4631d34d0d
commit af8236264e
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 5 additions and 3 deletions

View file

@ -501,6 +501,8 @@ textwindows int FlushConsoleInputBytes(int64_t handle) {
if (FlushConsoleInputBuffer(handle)) {
dll_make_first(&__keystroke.free, __keystroke.list);
__keystroke.list = 0;
dll_make_first(&__keystroke.free, __keystroke.line);
__keystroke.line = 0;
rc = 0;
} else {
rc = __winerr();