mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Fix uninitialized memory when --pw-stdin is used with a pipe
This commit is contained in:
@@ -105,7 +105,9 @@ namespace Utils
|
||||
SetConsoleMode(hIn, mode);
|
||||
#else
|
||||
struct termios t;
|
||||
tcgetattr(STDIN_FILENO, &t);
|
||||
if (tcgetattr(STDIN_FILENO, &t) < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (enable) {
|
||||
t.c_lflag |= ECHO;
|
||||
|
||||
Reference in New Issue
Block a user