diff options
-rw-r--r-- | libbb/lineedit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 1b88a7141..413782d06 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -1915,6 +1915,7 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li | |||
1915 | INIT_S(); | 1915 | INIT_S(); |
1916 | 1916 | ||
1917 | #if ENABLE_PLATFORM_MINGW32 | 1917 | #if ENABLE_PLATFORM_MINGW32 |
1918 | memset(initial_settings.c_cc, sizeof(initial_settings.c_cc), 0); | ||
1918 | if (!isatty(0) || !isatty(1)) { | 1919 | if (!isatty(0) || !isatty(1)) { |
1919 | #else | 1920 | #else |
1920 | if (tcgetattr(STDIN_FILENO, &initial_settings) < 0 | 1921 | if (tcgetattr(STDIN_FILENO, &initial_settings) < 0 |