mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-03-11 08:54:48 +00:00
Fix uninitialized memory when --pw-stdin is used with a pipe
This commit is contained in:
parent
d9ccf767d0
commit
2cc2c905b5
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue